ImageView big images fix
This commit is contained in:
@@ -137,7 +137,7 @@ void ImageView::adjustView() {
|
|||||||
#if QT_VERSION_MAJOR >= 5
|
#if QT_VERSION_MAJOR >= 5
|
||||||
ws *= devicePixelRatio();
|
ws *= devicePixelRatio();
|
||||||
#endif
|
#endif
|
||||||
int nw = map.size().boundedTo(ws).width();
|
int nw = map.size().width();
|
||||||
item->setScale(1.);
|
item->setScale(1.);
|
||||||
if (nw > 0) {
|
if (nw > 0) {
|
||||||
qreal mp = map.width() / nw;
|
qreal mp = map.width() / nw;
|
||||||
|
|||||||
Reference in New Issue
Block a user