Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ int PixmapLabelPreview::heightForWidth(int width) const
|
||||
return width;
|
||||
}
|
||||
|
||||
return ((qreal)m_pixmap.height() * width) / m_pixmap.width();
|
||||
return static_cast<int>(((qreal)m_pixmap.height() * width) / m_pixmap.width());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user