|
@@ -83,7 +83,9 @@ WorkArea::~WorkArea ()
|
|
|
void
|
|
|
WorkArea::loadImage (const std::string & filename)
|
|
|
{
|
|
|
- original = new QImage (QString::fromStdString (filename));
|
|
|
+ QImageReader qImgReader(QString::fromStdString (filename));
|
|
|
+ qImgReader.setAutoTransform(true);
|
|
|
+ original = new QImage (qImgReader.read());
|
|
|
img =
|
|
|
new QImage (original->scaled (screenSizeX, screenSizeY - this->geometry ().y (),
|
|
|
Qt::KeepAspectRatio, Qt::FastTransformation));
|