Skip to content

Commit

Permalink
std::ceil instead of qCeil
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Aug 21, 2018
1 parent 2e56fad commit eb220ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/3d/qgslayoutitem3dmap.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit eb220ed

Please sign in to comment.