https://bugzilla.redhat.com/show_bug.cgi?id=1036351
Nils Philippsen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |ect.org, | |[email protected] | |ct.org, [email protected] Component|gimp |pango Assignee|[email protected] |[email protected] --- Comment #11 from Nils Philippsen <[email protected]> --- Looks like a division by zero here: --- 8< --- pango/pango-layout.c:6098 -- pango_layout_iter_get_char_extents() --- x0 = (iter->character_position * cluster_rect.width) / iter->cluster_num_chars; --- >8 --- The cluster_num_chars member is opaque to outside API users, so IMO has to be set by pango itself: --- 8< --- app/tools/gimptexttool.c:841 -- gimp_text_tool_draw_selection() --- iter = pango_layout_get_iter (layout); gimp_draw_tool_push_group (draw_tool, fill_group); do { if (! pango_layout_iter_get_run (iter)) continue; i = pango_layout_iter_get_index (iter); if (i >= min && i < max) { PangoRectangle rect; gint ytop, ybottom; pango_layout_iter_get_char_extents (iter, &rect); pango_layout_iter_get_line_yrange (iter, &ytop, &ybottom); rect.y = ytop; rect.height = ybottom - ytop; pango_extents_to_pixels (&rect, NULL); gimp_text_layout_transform_rect (text_tool->layout, &rect); rect.x += offset_x; rect.y += offset_y; gimp_draw_tool_add_rectangle (draw_tool, TRUE, rect.x, rect.y, rect.width, rect.height); } } while (pango_layout_iter_next_char (iter)); --- >8 --- Changing component to pango. -- You are receiving this mail because: You are on the CC list for the bug. Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=JIzyg9VDsx&a=cc_unsubscribe _______________________________________________ fonts-bugs mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fonts-bugs http://fonts.fedoraproject.org/
