Skip to content
Permalink
Browse files

fix gcc warnings

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10011 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 24, 2009
1 parent 3f66490 commit 01674c338bca46659700e485b04b269776a96cf0
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/composer/qgscomposeritem.cpp
@@ -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 01674c3

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