Fix of type in header

This commit is contained in:
Magnus Homann 2012-08-27 14:33:34 +02:00
parent 8b74b9e770
commit c1decf7a18

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