Skip to content
Permalink
Browse files

not using mContext from future integration received by cherry-pick

  • Loading branch information
signedav committed Apr 22, 2019
1 parent 09afa5d commit d4effad32c9c1c817cf610abc3b1e795dcad92fd
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/server/services/wms/qgswmsrenderer.cpp
@@ -204,7 +204,7 @@ namespace QgsWms
}
else
{
double defaultMapUnitsPerPixel = QgsServerProjectUtils::wmsDefaultMapUnitsPerMm( *mContext.project() ) / mContext.dotsPerMm();
double defaultMapUnitsPerPixel = QgsServerProjectUtils::wmsDefaultMapUnitsPerMm( *mProject ) / dpmm;
legendSettings.setMapUnitsPerPixel( defaultMapUnitsPerPixel );
}

@@ -246,11 +246,6 @@ namespace QgsWms
legendRendererNew.drawLegend( painter.get() );
painter->end();
}
else
{
double defaultMapUnitsPerPixel = QgsServerProjectUtils::wmsDefaultMapUnitsPerMm( *mContext.project() ) / mContext.dotsPerMm();
settings.setMapUnitsPerPixel( defaultMapUnitsPerPixel );
}

rootGroup.clear();
return image.release();

0 comments on commit d4effad

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