Skip to content

Commit

Permalink
Gui: do not change size properties when loading an image
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 28, 2023
1 parent 548f9ce commit c26dc2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Gui/ViewProviderImagePlane.cpp
Expand Up @@ -188,11 +188,8 @@ void ViewProviderImagePlane::loadImage()

QImage impQ;
if (!loadSvg(fileName.c_str(), xsize, ysize, impQ)) {
QSizeF size = loadRaster(fileName.c_str(), impQ);
loadRaster(fileName.c_str(), impQ);
if (!impQ.isNull()) {
imagePlane->XSize.setValue(size.width());
imagePlane->YSize.setValue(size.height());

imagePlane->XPixelsPerMeter = impQ.dotsPerMeterX();
imagePlane->YPixelsPerMeter = impQ.dotsPerMeterY();
}
Expand Down

0 comments on commit c26dc2e

Please sign in to comment.