Skip to content

Commit

Permalink
Fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 18, 2019
1 parent 9a60f17 commit e63e7ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsrubberband.cpp
Expand Up @@ -531,12 +531,14 @@ void QgsRubberBand::updateRect()

const QgsMapToPixel &m2p = *( mMapCanvas->getCoordinateTransform() );

#if 0 // unused?
double iconSize = ( mIconSize + 1 ) / 2.;
if ( mSvgRenderer )
{
QRectF viewBox = mSvgRenderer->viewBoxF();
iconSize = std::max( std::fabs( mSvgOffset.x() ) + .5 * viewBox.width(), std::fabs( mSvgOffset.y() ) + .5 * viewBox.height() );
}
#endif

qreal w = ( ( mIconSize - 1 ) / 2 + mPen.width() ); // in canvas units

Expand Down

0 comments on commit e63e7ab

Please sign in to comment.