Skip to content

Commit 03bff50

Browse files
committed
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
1 parent cc62c52 commit 03bff50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app/qgsmeasuredialog.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ void QgsMeasureDialog::unitsChanged( int index )
112112
mTable->clear();
113113
mTotal = 0.;
114114
updateUi();
115+
116+
if ( !mTool->done() )
117+
{
118+
// re-add temporary mouse cursor position
119+
addPoint( mLastMousePoint );
120+
mouseMove( mLastMousePoint );
121+
}
115122
}
116123

117124
void QgsMeasureDialog::restart()

0 commit comments

Comments
 (0)