Skip to content

Commit

Permalink
Correcting results displaying
Browse files Browse the repository at this point in the history
close #197
IsogeoPlgTools.format_button_title() method has been modified instead of fixing with Qt5
  • Loading branch information
SimonSAMPERE committed Jun 25, 2019
1 parent 56c1522 commit 391a373
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/tools.py
Expand Up @@ -75,6 +75,12 @@ def format_button_title(self, title):
:param str title: title to format
"""
words = title.split(' ')
if len(words) == 1 and len(words[0])>33:
final_text = "\n" + words[0][:30] + "..."
return final_text
else:
pass

line_length = 0
lines = []
string = ""
Expand Down

0 comments on commit 391a373

Please sign in to comment.