Skip to content
Permalink
Browse files

std::ceil instead of qCeil

  • Loading branch information
wonder-sk committed Aug 21, 2018
1 parent 2e56fad commit eb220ed8f9ed952b3378fc06453dc09edcb6ba89
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/3d/qgslayoutitem3dmap.cpp
@@ -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 );

0 comments on commit eb220ed

Please sign in to comment.
You can’t perform that action at this time.