Skip to content

Commit

Permalink
Fix cast warnings in map image label code
Browse files Browse the repository at this point in the history
  • Loading branch information
vadi2 committed Oct 12, 2020
1 parent aed2920 commit d86d844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TMap.cpp
Expand Up @@ -1934,7 +1934,7 @@ int TMap::createMapImageLabel(int area, QString imagePath, float x, float y, flo
label.showOnTop = showOnTop;
label.noScaling = noScaling;

QRectF drawRect = QRectF(0, 0, width * zoom, height * zoom);
QRectF drawRect = QRectF(0, 0, (qreal) width * zoom, (qreal) height * zoom);
QPixmap imagePixmap = QPixmap(imagePath);
QPixmap pix = QPixmap(drawRect.size().toSize());
pix.fill(Qt::transparent);
Expand Down

0 comments on commit d86d844

Please sign in to comment.