Skip to content
Permalink
Browse files

[composer] Simplify text used for item name for labels

  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 5a96ae2 commit b044d4d323d1d9552adde16759fc6808d7db0d46
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposerlabel.cpp
@@ -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();
}
}

0 comments on commit b044d4d

Please sign in to comment.
You can’t perform that action at this time.