Fix a compilation issue reported by Dany
This commit is contained in:
parent
2573644518
commit
c86ed96433
2 changed files with 3 additions and 2 deletions
|
@ -366,7 +366,8 @@ void BaseDiagram::paintNavaid(QPainter* painter, const FGPositionedRef &pos)
|
|||
if (drawAsIcon) {
|
||||
QPixmap pm = iconForPositioned(pos);
|
||||
QPointF loc = m_viewportTransform.map(project(pos->geod()));
|
||||
iconRect = pm.rect();
|
||||
const auto sz = pm.size() / pm.devicePixelRatio();
|
||||
iconRect = QRect(QPoint(0,0), sz);
|
||||
iconRect.moveCenter(loc.toPoint());
|
||||
painter->drawPixmap(iconRect, pm);
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ void PixmapImageItem::setImage(QImage img)
|
|||
|
||||
_image = img;
|
||||
update();
|
||||
const auto sz = img.size() / img.devicePixelRatioF();
|
||||
const auto sz = img.size() / img.devicePixelRatio();
|
||||
setImplicitSize(sz.width(), sz.height());
|
||||
emit imageChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue