Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmaptoolcapture.cpp
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolcapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ void QgsMapToolCapture::undo()

mRubberBand->removePoint( -1 );

if ( rubberBandSize > 0 )
if ( rubberBandSize > 1 )
{
if ( tempRubberBandSize > 1 )
{
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 2 );
mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
}
}
Expand Down