mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -05:00
std::ceil instead of qCeil
This commit is contained in:
parent
2e56fadcd1
commit
eb220ed8f9
@ -43,7 +43,8 @@ void QgsLayoutItem3DMap::draw( QgsLayoutItemRenderContext &context )
|
||||
{
|
||||
QgsOffscreen3DEngine engine;
|
||||
QSizeF sizePixels = mLayout->renderContext().measurementConverter().convert( sizeWithUnits(), QgsUnitTypes::LayoutPixels ).toQSizeF();
|
||||
engine.setSize( QSize( qCeil( sizePixels.width() ), qCeil( sizePixels.height() ) ) );
|
||||
engine.setSize( QSize( static_cast<int>( std::ceil( sizePixels.width() ) ),
|
||||
static_cast<int>( std::ceil( sizePixels.height() ) ) ) );
|
||||
|
||||
Qgs3DMapScene *scene = new Qgs3DMapScene( *mSettings, &engine );
|
||||
engine.setRootEntity( scene );
|
||||
|
Loading…
x
Reference in New Issue
Block a user