Skip to content
Permalink
Browse files
Fix check
  • Loading branch information
nyalldawson committed Jun 28, 2021
1 parent 61e924b commit 7a07e0d35fc02f7d4cb0b39199e2861d389dd887
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsrendercontext.cpp
@@ -383,7 +383,7 @@ double QgsRenderContext::convertToPainterUnits( double size, QgsUnitTypes::Rende
convertedSize = std::min( convertedSize, scale.maxSizeMM * mScaleFactor );
}

const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 1 ? mSymbologyReferenceScale / mRendererScale : 1;
const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 0 ? mSymbologyReferenceScale / mRendererScale : 1;
convertedSize *= symbologyReferenceScaleFactor;

return convertedSize;
@@ -393,7 +393,7 @@ double QgsRenderContext::convertToMapUnits( double size, QgsUnitTypes::RenderUni
{
double mup = mMapToPixel.mapUnitsPerPixel();

const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 1 ? mSymbologyReferenceScale / mRendererScale : 1;
const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 0 ? mSymbologyReferenceScale / mRendererScale : 1;

switch ( unit )
{
@@ -458,7 +458,7 @@ double QgsRenderContext::convertToMapUnits( double size, QgsUnitTypes::RenderUni
double QgsRenderContext::convertFromMapUnits( double sizeInMapUnits, QgsUnitTypes::RenderUnit outputUnit ) const
{
double mup = mMapToPixel.mapUnitsPerPixel();
const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 1 ? mSymbologyReferenceScale / mRendererScale : 1;
const double symbologyReferenceScaleFactor = mSymbologyReferenceScale > 0 ? mSymbologyReferenceScale / mRendererScale : 1;

switch ( outputUnit )
{

0 comments on commit 7a07e0d

Please sign in to comment.