Skip to content
Permalink
Browse files

Avoid console noise when loading layouts

(cherry picked from commit 4da0796)
  • Loading branch information
nyalldawson committed Jan 8, 2019
1 parent 680f2be commit 3376586e41d132f8fc687314579ba4560c0714a2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/layout/qgslayoutitemmap.cpp
@@ -138,6 +138,9 @@ void QgsLayoutItemMap::refresh()

double QgsLayoutItemMap::scale() const
{
if ( rect().isEmpty() )
return 0;

QgsScaleCalculator calculator;
calculator.setMapUnits( crs().mapUnits() );
calculator.setDpi( 25.4 ); //Using mm

0 comments on commit 3376586

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