mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[composer] Simplify text used for item name for labels
This commit is contained in:
parent
5a96ae284f
commit
b044d4d323
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user