Commit 74bdf316 authored by Jean Bréfort's avatar Jean Bréfort

Preserve cairo state in item-edit. [#664692]

parent 3d4e3524
2011-11-24 Jean Brefort <jean.brefort@normalesup.org>
* src/item-edit.c (item_edit_draw): preserve cairo state. [#664692]
2011-11-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/style.h: fix definition of GNM_ALIGN_H_TYPE and GNM_ALIGN_V_TYPE
......
......@@ -73,6 +73,7 @@ Jean:
autocompletion. [#663671]
* Fixed rendering of outline levels. [#663663, #663802]
* Fixed schemas paths. [#664243]
* Preserve cairo state in item-edit. [#664692]
Marek Černocký:
* Add some translation contexts to improve translations.
......
......@@ -112,6 +112,8 @@ item_edit_draw (GocItem const *item, cairo_t *cr)
goc_canvas_c2w (item->canvas, item->x1, item->y1, &x1, &y1);
}
cairo_save (cr);
cairo_rectangle (cr, x0, y0, x1 - x0, y1 - y0);
/* avoid a weak/strong cursor to extent outside the item,
a better fix would be to have enough room for cursors */
......@@ -204,6 +206,7 @@ item_edit_draw (GocItem const *item, cairo_t *cr)
cairo_fill (cr);
}
}
cairo_restore (cr);
}
static double
......
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