From c1decf7a18a546c5ef6c11e336edaa4a34c1a4be Mon Sep 17 00:00:00 2001 From: Magnus Homann Date: Mon, 27 Aug 2012 14:33:34 +0200 Subject: [PATCH] Fix of type in header --- src/app/qgsmeasuredialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/qgsmeasuredialog.cpp b/src/app/qgsmeasuredialog.cpp index 48e7d38ec23..1acf200a307 100644 --- a/src/app/qgsmeasuredialog.cpp +++ b/src/app/qgsmeasuredialog.cpp @@ -278,7 +278,10 @@ void QgsMeasureDialog::updateUi() editTotal->setToolTip( toolTip ); mTable->setToolTip( toolTip ); - mTable->setHeaderLabels( QStringList( tr( "Segments [%1]" ).arg( QGis::tr( mDisplayUnits ) ) ) ); + QGis::UnitType newDisplayUnits; + double dummy = 1.0; + convertMeasurement( dummy, newDisplayUnits, true ); + mTable->setHeaderLabels( QStringList( tr( "Segments [%1]" ).arg( QGis::tr( newDisplayUnits ) ) ) ); if ( mMeasureArea ) {