Skip to content

Commit

Permalink
redraw last segment when zoom stopped
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5186 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Apr 6, 2006
1 parent 275887c commit 3510a84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/grass/qgsgrassedittools.cpp
Expand Up @@ -14,6 +14,7 @@
* *
***************************************************************************/

#include "qgsmapcanvas.h"
#include "qgsgrassedittools.h"
#include "qgsgrassedit.h"
#include "qgsgrassattributes.h"
Expand Down Expand Up @@ -129,8 +130,8 @@ void QgsGrassEditNewLine::activate()
if ( e->mEditPoints->n_points > 0 ) {
Vect_reset_line ( e->mPoints );
Vect_append_points ( e->mPoints, e->mEditPoints, GV_FORWARD );
// TODO: how to get mouse position?
//Vect_append_point ( e->mPoints, newPoint.x(), newPoint.y(), 0.0 );
QgsPoint point = toMapCoords( e->mCanvas->mouseLastXY() );
Vect_append_point ( e->mPoints, point.x(), point.y(), 0.0 );
e->displayDynamic ( e->mPoints );
}

Expand Down

0 comments on commit 3510a84

Please sign in to comment.