Skip to content
Permalink
Browse files

Fix measure dialog shows wrong results when changing units

If the measurement was not finished (ie right click occurred)
then the last length would be missing from the table

Fix #15433

(cherry-picked from 03bff50)
  • Loading branch information
nyalldawson committed Oct 6, 2016
1 parent d073ca2 commit adb6c0a452e049238e3d3d7e3810813bdc923df5
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgsmeasuredialog.cpp
@@ -113,6 +113,13 @@ void QgsMeasureDialog::unitsChanged( int index )
mTable->clear();
mTotal = 0.;
updateUi();

if ( !mTool->done() )
{
// re-add temporary mouse cursor position
addPoint( mLastMousePoint );
mouseMove( mLastMousePoint );
}
}

void QgsMeasureDialog::restart()

0 comments on commit adb6c0a

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