GNOME Bugzilla – Bug 99954
gnome_canvas_item_get_bounds does not work with a Rich Text item
Last modified: 2005-05-19 13:28:46 UTC
Calling gnome_canvas_item_get_bounds with a GnomeCanvasRichText return bounds all equal to 0. Adding a line like: item_class->bounds = get_bounds; in gnome_canvas_rich_text_class_init along with an appropriate header seems to fix the problem. May be get_bounds should be renamed gnome_canvas_rich_text_get_bounds? Jean Bréfort <jeau.brefort@ac-dijon.fr>
Is this still wrong in the current sources?
Created attachment 23585 [details] [review] a patch to fix this bug
Created attachment 23590 [details] [review] Oops! My first patch had bugs. Here is a new one which should fix the problem.
Please review the patch. Looks good to me, but I'm hardly the canvas expert here.
Please, someone review this patch?
i can't really make an authoritative judgement here, i have too little knowledge on the text item. if you want a call though, apply it, it most probably improves things and doesn't make them worse ;)
Ok. Commiting this on HEAD at least then.