Skip to content

Commit

Permalink
[composer] Simplify text used for item name for labels
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.