Browse Source

update piano chord wrapping

master
Ivan Holmes 5 years ago
parent
commit
ce3d79bb6c
  1. 2
      chordsheet/render.py

2
chordsheet/render.py

@ -194,7 +194,7 @@ class PianoChart(Flowable):
widest = 0 widest = 0
for index, c in enumerate(self.pianoChordList): for index, c in enumerate(self.pianoChordList):
cKL, vL, fKN, iconWidth = self.calculate(c) cKL, vL, fKN, iconWidth = self.calculate(c)
if currentWidth + iconWidth >= availWidth + self.iconHzSpacing:
if currentWidth + iconWidth >= availWidth:
vUnits += 1 vUnits += 1
currentWidth = self.chartMargin currentWidth = self.chartMargin
else: else:

Loading…
Cancel
Save