mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
xcf: Properly read image resolution
Summary: QDataStream reads 64 bits when reading into a float unless you tell it to use SinglePrecision, since floats in xcf are 32 bit, do that Reviewers: cfeck, apol, vkrause Reviewed By: vkrause Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D24113
This commit is contained in:
@ -414,6 +414,7 @@ bool XCFImageFormat::loadImageProperties(QDataStream &xcf_io, XCFImage &xcf_imag
|
||||
break;
|
||||
|
||||
case PROP_RESOLUTION:
|
||||
property.setFloatingPointPrecision(QDataStream::SinglePrecision);
|
||||
property >> xcf_image.x_resolution >> xcf_image.y_resolution;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user