Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
not using mContext from future integration received by cherry-pick
  • Loading branch information
signedav committed Apr 22, 2019
1 parent 09afa5d commit d4effad
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -204,7 +204,7 @@ namespace QgsWms
}
else
{
double defaultMapUnitsPerPixel = QgsServerProjectUtils::wmsDefaultMapUnitsPerMm( *mContext.project() ) / mContext.dotsPerMm();
double defaultMapUnitsPerPixel = QgsServerProjectUtils::wmsDefaultMapUnitsPerMm( *mProject ) / dpmm;
legendSettings.setMapUnitsPerPixel( defaultMapUnitsPerPixel );
}

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d4effad

Please sign in to comment.