Skip to content

Commit

Permalink
Removed unused argument from wordWrap function
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne committed Jul 14, 2014
1 parent 169b814 commit 69134ca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions passagewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def cachePaint(self, size):
Caches the widget so self.paintBuffer is up-to-date.
"""

def wordWrap(text, lineWidth, gc, lineBreaks = False):
def wordWrap(text, lineWidth, gc):
"""
Returns a list of lines from a string
This is somewhat based on the wordwrap function built into wx.lib.
Expand Down Expand Up @@ -631,7 +631,7 @@ def dim(c, dim, flat=flat):
gc.SetFont(excerptFont)
gc.SetTextForeground(excerptTextColor)

excerptLines = wordWrap(self.passage.text, size.width - (inset * 2), gc, self.passage.isAnnotation())
excerptLines = wordWrap(self.passage.text, size.width - (inset * 2), gc)

for line in excerptLines:
gc.DrawText(line, inset, excerptTop)
Expand All @@ -656,8 +656,7 @@ def dim(c, dim, flat=flat):
gc.SetFont(excerptFont)
gc.SetTextForeground(tagTextColor)

text = wordWrap(" ".join(tags),
size.width - (inset * 2), gc)[0]
text = wordWrap(' '.join(tags), size.width - (inset * 2), gc)[0]

gc.DrawText(text, inset*2, (size.height-tagBarHeight))
else:
Expand Down

0 comments on commit 69134ca

Please sign in to comment.