updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / python-wordaxe / splitting.patch
blob7a40fef077a99d1ce81689393b58136757700767
1 diff -ru wordaxe-1.0.1-orig/wordaxe/rl/NewParagraph.py wordaxe-1.0.1/wordaxe/rl/NewParagraph.py
2 --- wordaxe-1.0.1-orig/wordaxe/rl/NewParagraph.py 2010-04-15 10:34:19.000000000 -0300
3 +++ wordaxe-1.0.1/wordaxe/rl/NewParagraph.py 2010-04-15 10:37:11.000000000 -0300
4 @@ -657,7 +657,7 @@
6 self.width = availW
7 self.height = sumHeight
8 - if sumHeight > availH:
9 + if sumHeight and sumHeight > availH:
10 #print id(self), "needs splitting"
11 #print "lines[-1]:", lines[-1]
12 #print "frags_remaining:", frags_remaining
13 @@ -687,7 +687,7 @@
14 else:
15 #print id(self), "fits"
16 unused = []
17 - assert self.height <= availH, (id(self), self.height, availH)
18 + #assert self.height <= availH, (id(self), self.height, availH)
19 self._cache['lines'] = lines
20 self._cache['unused'] = unused
21 self._cache['avail'] = (availW, availH)