Hi,
when drawing a filled rounded rectangle the diagdkrenderer shows 3
small leaks in the filling of such a rounded rectangle. The bug is due
to this line in lib/diagdkrenderer.c/draw_fill_arc
gdk_draw_arc(renderer->pixmap,
gc, fill,
left, top, right-left+(fill?1:0), bottom-top+(fill?1:0),
(int) (angle1*64.0), (int) (dangle*64.0));
this function is called with fill=TRUE in fill_rounded_rect. Adding 1
to x and y coordinates explains the 3 leaks in the filling.
IMHO it does not makes sense to add 1 if arc is to be filled. Therefore
I would suggest to change it into
gdk_draw_arc(renderer->pixmap,
gc, fill,
left, top, right-left, bottom-top,
(int) (angle1*64.0), (int) (dangle*64.0));
This is only directly in dia (i.e., diagdkrenderer) and not in any
plugin.
BTW, isn't it the right way to post patches to this list ? Should I
post them anywhere else ? I would be glad to hear from you.
Ciao,
Michi
_______________________________________________
Dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia