mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Avoid console noise when loading layouts
This commit is contained in:
parent
098aad5c16
commit
4da0796180
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user