Skip to content

Commit

Permalink
fix gcc warnings
Browse files Browse the repository at this point in the history
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.
4 changes: 1 addition & 3 deletions src/core/composer/qgscomposeritem.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3200e3e

Please sign in to comment.