Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 14, 2012
1 parent f210668 commit da4fa9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -2461,6 +2461,9 @@ QgsRectangle QgsProjectParser::projectExtent() const

void QgsProjectParser::drawOverlays( QPainter* p, int dpi, int width, int height ) const
{
Q_UNUSED( width );
Q_UNUSED( height );

//consider DPI
double scaleFactor = dpi / 88.0; //assume 88 as standard dpi
QgsRectangle prjExtent = projectExtent();
Expand Down Expand Up @@ -2618,6 +2621,8 @@ void QgsProjectParser::cleanupTextAnnotationItems()
bool QgsProjectParser::annotationPosition( const QDomElement& elem, double scaleFactor,
double& xPos, double& yPos )
{
Q_UNUSED( scaleFactor );

xPos = elem.attribute( "canvasPosX" ).toDouble() / scaleFactor;
yPos = elem.attribute( "canvasPosY" ).toDouble() / scaleFactor;
return true;
Expand Down

0 comments on commit da4fa9c

Please sign in to comment.