7710: Fix crash in fan chart view when scrolling
This commit is contained in:
parent
a2dcbebd35
commit
3e514a9798
@ -664,6 +664,9 @@ class FanChartBaseWidget(Gtk.DrawingArea):
|
|||||||
PangoCairo.layout_path(cr, layout)
|
PangoCairo.layout_path(cr, layout)
|
||||||
#le = layout.get_line(0).get_pixel_extents()[0]
|
#le = layout.get_line(0).get_pixel_extents()[0]
|
||||||
pe = cr.path_extents()
|
pe = cr.path_extents()
|
||||||
|
if pe == (0.0, 0.0, 0.0, 0.0):
|
||||||
|
# 7710: When scrolling the path extents are zero on Ubuntu 14.04
|
||||||
|
return
|
||||||
arc_used_ratio = w / (radius * rad_spread)
|
arc_used_ratio = w / (radius * rad_spread)
|
||||||
rad_mid = math.radians(pos) + rad_spread/2
|
rad_mid = math.radians(pos) + rad_spread/2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user