[composer] Simplify text used for item name for labels

This commit is contained in:
Nyall Dawson 2014-09-29 23:46:21 +10:00
parent 5a96ae284f
commit b044d4d323

View File

@ -429,11 +429,11 @@ QString QgsComposerLabel::displayName() const
}
if ( text.length() > 25 )
{
return QString( tr( "%1..." ) ).arg( text.left( 25 ) );
return QString( tr( "%1..." ) ).arg( text.left( 25 ).simplified() );
}
else
{
return text;
return text.simplified();
}
}