Skip to content
Permalink
Browse files
fix gcc warnings
git-svn-id: http://svn.osgeo.org/qgis/trunk@10011 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jan 24, 2009
1 parent 7e04f3e commit 3200e3e
Showing 1 changed file with 1 addition and 3 deletions.
@@ -225,7 +225,6 @@ void QgsComposerItem::mouseMoveEvent( QGraphicsSceneMouseEvent * event )
double diffX = event->lastScenePos().x() - mLastMouseEventPos.x();
double diffY = event->lastScenePos().y() - mLastMouseEventPos.y();

double mx, my, rx, ry;
changeItemRectangle( event->lastScenePos(), mMouseMoveStartPos, this, diffX, diffY, mBoundingResizeRectangle );
}
mLastMouseEventPos = event->lastScenePos();
@@ -272,7 +271,6 @@ void QgsComposerItem::mouseReleaseEvent( QGraphicsSceneMouseEvent * event )
return;
}

double mx, my, rx, ry;
changeItemRectangle( mouseMoveStopPoint, mMouseMoveStartPos, this, diffX, diffY, this );

//reset default action
@@ -377,7 +375,7 @@ void QgsComposerItem::changeItemRectangle( const QPointF& currentPosition, const
return;
}

double mx, my, rx, ry;
double mx = 0.0, my = 0.0, rx = 0.0, ry = 0.0;
QPointF snappedPosition = mComposition->snapPointToGrid( currentPosition );
//double diffX = snappedPosition.x() - mouseMoveStartPos.x();
//double diffY = snappedPosition.y() - mouseMoveStartPos.y();

0 comments on commit 3200e3e

Please sign in to comment.