Commit 089f746c authored by Jean Bréfort's avatar Jean Bréfort

Fix background filling for rtl sheets. [#725276]

parent fff52573
2014-02-27 Jean Brefort <jean.brefort@normalesup.org>
* src/item-grid.c (item_grid_draw_region): fix background filling for
rtl sheets. [#725276]
2014-02-25 Morten Welinder <terra@gnome.org>
* src/gui-util.c (kill_popup_menu): Avoid criticals inside gtk+.
......
......@@ -14,6 +14,7 @@ Andreas:
Jean:
* Fix persistence of hyperlinks tips. [see #724108]
* Fix background filling for rtl sheets. [#725276]
Morten:
* Fix BIFF7 import of long strings. [#724399]
......
......@@ -516,11 +516,18 @@ item_grid_draw_region (GocItem const *item, cairo_t *cr,
/* Fill entire region with default background (even past far edge) */
cairo_save (cr);
gtk_render_background (goc_item_get_style_context (item),
cr,
x0 - canvas->scroll_x1 * scale,
y0 - canvas->scroll_y1 * scale,
width, height);
if (canvas->direction == GOC_DIRECTION_LTR)
gtk_render_background (goc_item_get_style_context (item),
cr,
x0 - canvas->scroll_x1 * scale,
y0 - canvas->scroll_y1 * scale,
width, height);
else
gtk_render_background (goc_item_get_style_context (item),
cr,
canvas->width - x0 + canvas->scroll_x1 * scale - width,
y0 - canvas->scroll_y1 * scale,
width, height);
cairo_restore (cr);
/* Get ordered list of merged regions */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment