Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdugge committed Feb 20, 2019
1 parent ef912d2 commit 29a5bd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/qgsadvanceddigitizingcanvasitem.cpp
Expand Up @@ -69,8 +69,7 @@ void QgsAdvancedDigitizingCanvasItem::paint( QPainter *painter )
if ( mupp == 0 )
return;

const double canvasRotation = mMapCanvas->rotation();
const double canvasRotationRad = canvasRotation * M_PI / 180;
const double canvasRotationRad = mMapCanvas->rotation() * M_PI / 180;
const double canvasMaxDimension = std::max( canvasWidth / mupp, canvasHeight / mupp );

QPointF curPointPix, prevPointPix, penulPointPix, snapSegmentPix1, snapSegmentPix2;
Expand Down

0 comments on commit 29a5bd9

Please sign in to comment.