Fix of type in header

This commit is contained in:
Magnus Homann 2012-08-27 14:33:34 +02:00
parent b0e3d71998
commit 256d2299e9

View File

@ -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 )
{