Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
alexbruy committed Nov 14, 2012
1 parent f210668 commit da4fa9c9a4b5ed1397c286c1498a1ee542db4ee5
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/mapserver/qgsprojectparser.cpp
@@ -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();
@@ -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;

0 comments on commit da4fa9c

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