[gnumeric] Fixed crash in item-bar.c
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed crash in item-bar.c
- Date: Sun, 6 Nov 2011 19:56:52 +0000 (UTC)
commit b8161ee721e8a0856843142186d032dbcf1ae458
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Nov 6 20:49:27 2011 +0100
Fixed crash in item-bar.c
ChangeLog | 4 ++++
src/item-bar.c | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index decbb3e..8893822 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-06 Jean Brefort <jean brefort normalesup org>
+
+ * src/item-bar.c (item_bar_draw_region): fix crash.
+
2011-11-06 Marek Äernockà <marek manet cz>
* src/sheet-object-graph.c (sheet_object_graph_guru): add context to
diff --git a/src/item-bar.c b/src/item-bar.c
index 60e3289..28a9a11 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -458,7 +458,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
else if (size < 6)
safety = 6 - size;
- gtk_style_context_set_state (ctxt, next->visible ?
+ gtk_style_context_set_state (ctxt, prev_visible ?
GTK_STATE_NORMAL: GTK_STATE_SELECTED);
gtk_render_frame (ctxt, cr,
left, top+safety, size, size);
@@ -489,7 +489,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
safety = 6 - size;
right = (rtl ? (total + pixels) : total) - size;
- gtk_style_context_set_state (ctxt, next->visible ?
+ gtk_style_context_set_state (ctxt, prev_visible ?
GTK_STATE_NORMAL: GTK_STATE_SELECTED);
gtk_render_frame (ctxt, cr,
right, top+safety, size, size);
@@ -617,7 +617,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
left = pos - dir * (.2 * inc - 2);
if (rtl)
left -= size;
- gtk_style_context_set_state (ctxt, next->visible ?
+ gtk_style_context_set_state (ctxt, prev_visible ?
GTK_STATE_NORMAL: GTK_STATE_SELECTED);
gtk_render_frame (ctxt, cr,
left+safety, top, size, size);
@@ -650,7 +650,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
if (rtl)
left -= size;
bottom = total - size;
- gtk_style_context_set_state (ctxt, next->visible ?
+ gtk_style_context_set_state (ctxt, prev_visible ?
GTK_STATE_NORMAL: GTK_STATE_SELECTED);
gtk_render_frame (ctxt,cr,
left+safety*dir, bottom, size, size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]