Skip to content

Commit

Permalink
redraw after undo
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5187 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Apr 6, 2006
1 parent 3510a84 commit 5541461
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/grass/qgsgrassedittools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ void QgsGrassEditNewLine::mouseClick(QgsPoint & point, Qt::ButtonState button)
break;
case Qt::MidButton:
if ( e->mEditPoints->n_points > 0 ) {
e->eraseDynamic();
e->mEditPoints->n_points--;
Vect_reset_line ( e->mPoints );
Vect_append_points ( e->mPoints, e->mEditPoints, GV_FORWARD );
QgsPoint point = toMapCoords( e->mCanvas->mouseLastXY() );
Vect_append_point ( e->mPoints, point.x(), point.y(), 0.0 );
e->displayDynamic ( e->mPoints );
}
break;
case Qt::RightButton:
Expand Down

0 comments on commit 5541461

Please sign in to comment.