Skip to content
Permalink
Browse files

redraw last segment when zoom stopped

git-svn-id: http://svn.osgeo.org/qgis/trunk@5186 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Apr 6, 2006
1 parent 65a41b7 commit 01dcc252dc534c949f420d8e53a55af5f10f6a5e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/plugins/grass/qgsgrassedittools.cpp
@@ -14,6 +14,7 @@
* *
***************************************************************************/

#include "qgsmapcanvas.h"
#include "qgsgrassedittools.h"
#include "qgsgrassedit.h"
#include "qgsgrassattributes.h"
@@ -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 );
}

0 comments on commit 01dcc25

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