Fix minor ugliness due to precision loss.

Change an integer division into a floating one,
now the rendered text looks better.

svn: r22553
This commit is contained in:
Vassilii Khachaturov 2013-06-22 15:23:06 +00:00
parent 1dc1f6c0c2
commit d03fc19188

View File

@ -701,8 +701,8 @@ class FanChartBaseWidget(Gtk.DrawingArea):
x0, y0, w, h = rect[0], rect[1], rect[2]-rect[0], rect[3]-rect[1] x0, y0, w, h = rect[0], rect[1], rect[2]-rect[0], rect[3]-rect[1]
radiusin = radius - h/2 radiusin = radius - h/2.0
radiusout = radius + h/2 radiusout = radius + h/2.0
drho = h drho = h
dphi = (stop_rad - start_rad) dphi = (stop_rad - start_rad)