fix #49 rotating

This commit is contained in:
Yonghye Kwon 2021-06-06 14:53:11 +09:00
parent e67234bc5c
commit 6d980f77a2

View File

@ -1,5 +1,6 @@
#include "label_img.h"
#include <QPainter>
#include <QImageReader>
#include <math.h> /* fabs */
using std::ifstream;
@ -105,7 +106,9 @@ void label_img::setMousePosition(int x, int y)
void label_img::openImage(const QString &qstrImg, bool &ret)
{
QImage img(qstrImg);
QImageReader imgReader(qstrImg);
imgReader.setAutoTransform(true);
QImage img = imgReader.read();
if(img.isNull())
{