[QGIS Commit] r14700 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Nov 17 11:14:34 EST 2010


Author: mhugent
Date: 2010-11-17 08:14:34 -0800 (Wed, 17 Nov 2010)
New Revision: 14700

Modified:
   trunk/qgis/src/app/qgsmaptoolrotatelabel.cpp
Log:
Fix bug in rotate label tool (thanks, Juergen)

Modified: trunk/qgis/src/app/qgsmaptoolrotatelabel.cpp
===================================================================
--- trunk/qgis/src/app/qgsmaptoolrotatelabel.cpp	2010-11-17 15:18:17 UTC (rev 14699)
+++ trunk/qgis/src/app/qgsmaptoolrotatelabel.cpp	2010-11-17 16:14:34 UTC (rev 14700)
@@ -142,7 +142,7 @@
   double rotation = mCtrlPressed ? roundTo15Degrees( mCurrentRotation ) : mCurrentRotation;
 
   vlayer->beginEditCommand( tr( "Label rotated" ) );
-  vlayer->changeAttributeValue( mCurrentLabelPos.featureId, rotationCol, mCurrentRotation, false );
+  vlayer->changeAttributeValue( mCurrentLabelPos.featureId, rotationCol, rotation, false );
   vlayer->endEditCommand();
   mCanvas->refresh();
 }



More information about the QGIS-commit mailing list