diff --git a/loadrunable.cpp b/loadrunable.cpp index 5d9c449..d72a9b5 100644 --- a/loadrunable.cpp +++ b/loadrunable.cpp @@ -356,17 +356,16 @@ ConvertRunable::ConvertParams::ConvertParams(const QVariantMap &map) int h = size["height"].toInt(); resize = QSize(w, h); } - } - - if(map.contains("aspect")) - { - QString aspectStr = map["aspect"].toString(); - if(aspectStr == "keep") - aspect = Qt::KeepAspectRatio; - else if(aspectStr == "expand") - aspect = Qt::KeepAspectRatioByExpanding; - else if(aspectStr == "ignore") - aspect = Qt::IgnoreAspectRatio; + if(size.contains("aspect")) + { + QString aspectStr = map["aspect"].toString(); + if(aspectStr == "keep") + aspect = Qt::KeepAspectRatio; + else if(aspectStr == "expand") + aspect = Qt::KeepAspectRatioByExpanding; + else if(aspectStr == "ignore") + aspect = Qt::IgnoreAspectRatio; + } } if(map.contains("autostretch"))