Skip to content
Permalink
Browse files

not using mContext from future integration

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

@@ -236,12 +236,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 d6e96fc

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