[gnumeric] Preserve cairo state in item-edit. [#664692]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Preserve cairo state in item-edit. [#664692]
- Date: Thu, 24 Nov 2011 18:59:35 +0000 (UTC)
commit 74bdf31605a45e240d363cd7f670f0e1d922036f
Author: Jean Brefort <jean brefort normalesup org>
Date: Thu Nov 24 19:58:49 2011 +0100
Preserve cairo state in item-edit. [#664692]
ChangeLog | 4 ++++
NEWS | 1 +
src/item-edit.c | 3 +++
3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b71515f..2373810 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
diff --git a/NEWS b/NEWS
index 8f8be68..b0c93bb 100644
--- a/NEWS
+++ b/NEWS
@@ -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.
diff --git a/src/item-edit.c b/src/item-edit.c
index 787b228..a893946 100644
--- a/src/item-edit.c
+++ b/src/item-edit.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]