Commit a6bcb785 authored by Halla Rempt's avatar Halla Rempt
Browse files

Make it possible to load kra files with a 1ppi resolution

BUG:444291
(cherry picked from commit 930da697)
parent 036b3bc9
Pipeline #196675 passed with stage
in 66 minutes and 50 seconds
......@@ -226,7 +226,7 @@ KisImageSP KisKraLoader::loadXML(const QDomElement& imageElement)
if (!(attr = imageElement.attribute(X_RESOLUTION)).isNull()) {
qreal value = KisDomUtils::toDouble(attr);
if (value > 1.0) {
if (value > 0) {
xres = value / 72.0;
}
}
......@@ -234,7 +234,7 @@ KisImageSP KisKraLoader::loadXML(const QDomElement& imageElement)
yres = 100.0 / 72.0;
if (!(attr = imageElement.attribute(Y_RESOLUTION)).isNull()) {
qreal value = KisDomUtils::toDouble(attr);
if (value > 1.0) {
if (value > 0) {
yres = value / 72.0;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment