Skip to content

Commit

Permalink
not using mContext from future integration
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Apr 22, 2019
1 parent 042bd1f commit d6e96fc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -194,7 +194,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 @@ -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();
}
Expand Down

0 comments on commit d6e96fc

Please sign in to comment.