mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix warnings
This commit is contained in:
parent
f210668cb2
commit
da4fa9c9a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user