Skip to content

Commit f327bf5

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 (cherry-picked from 03bff50)
1 parent 93b1170 commit f327bf5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app/qgsmeasuredialog.cpp

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

118125
void QgsMeasureDialog::restart()

0 commit comments

Comments
 (0)