Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[composer] Simplify text used for item name for labels
  • Loading branch information
nyalldawson committed Sep 29, 2014
1 parent 5a96ae2 commit b044d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposerlabel.cpp
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit b044d4d

Please sign in to comment.