Merge branch 'divbyzero' of https://github.com/erilyth/sugar-toolkit-gtk3
This commit is contained in:
commit
526c87d7c6
@ -973,6 +973,10 @@ class Invoker(GObject.GObject):
|
||||
|
||||
ih = 0
|
||||
|
||||
if palette_dim.width == 0:
|
||||
ph = 0
|
||||
|
||||
else:
|
||||
# Set palette_halign to align to screen on left
|
||||
if dleft > dright:
|
||||
ph = -float(dleft) / palette_dim.width
|
||||
|
Loading…
Reference in New Issue
Block a user