Skip to content
Permalink
Browse files

Avoid console noise when loading layouts

  • Loading branch information
nyalldawson committed Jan 8, 2019
1 parent 098aad5 commit 4da0796180d2e152c0fc1c028a62ff9c5dc96a7f
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 4da0796

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