Skip to content

Commit 5d44343

Browse files
author
rblazek
committed
redraw after undo
git-svn-id: http://svn.osgeo.org/qgis/trunk@5187 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 01dcc25 commit 5d44343

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/grass/qgsgrassedittools.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ void QgsGrassEditNewLine::mouseClick(QgsPoint & point, Qt::ButtonState button)
147147
break;
148148
case Qt::MidButton:
149149
if ( e->mEditPoints->n_points > 0 ) {
150-
e->eraseDynamic();
151150
e->mEditPoints->n_points--;
151+
Vect_reset_line ( e->mPoints );
152+
Vect_append_points ( e->mPoints, e->mEditPoints, GV_FORWARD );
153+
QgsPoint point = toMapCoords( e->mCanvas->mouseLastXY() );
154+
Vect_append_point ( e->mPoints, point.x(), point.y(), 0.0 );
155+
e->displayDynamic ( e->mPoints );
152156
}
153157
break;
154158
case Qt::RightButton:

0 commit comments

Comments
 (0)