[gnumeric] Fixed rendering of outline levels. [#663663]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed rendering of outline levels. [#663663]
- Date: Thu, 10 Nov 2011 11:14:13 +0000 (UTC)
commit dd7b048c6edbac6b976d513718b0d6e8208aad1a
Author: Jean Brefort <jean brefort normalesup org>
Date: Thu Nov 10 12:07:00 2011 +0100
Fixed rendering of outline levels. [#663663]
ChangeLog | 5 +++++
NEWS | 1 +
src/item-bar.c | 5 ++++-
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8d6457b..213a3c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-10 Jean Brefort <jean brefort normalesup org>
+
+ * src/item-bar.c (item_bar_draw_region): fixed rendering of outline
+ levels. [#663663]
+
2011-11-10 Andreas J. Guelzow <aguelzow pyrshep ca>
* schemas/org.gnome.gnumeric.gschema.xml.in.in
diff --git a/NEWS b/NEWS
index 5831c85..f949785 100644
--- a/NEWS
+++ b/NEWS
@@ -69,6 +69,7 @@ Jean:
* Fix crash in graphs using markups. [#663216]
* Add preference setting determining the minimum number of chars for
autocompletion. [#663671]
+ * Fixed rendering of outline levels. [#663663]
Marek ÄernockÃ:
* Add some translation contexts to improve translations.
diff --git a/src/item-bar.c b/src/item-bar.c
index 28a9a11..9356e62 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -445,6 +445,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
cairo_line_to (cr, total, pos);
}
}
+ cairo_stroke (cr);
first_line_offset = 0;
if (draw_right ^ rtl) {
@@ -601,6 +602,7 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
cairo_line_to (cr, pos, total);
}
}
+ cairo_stroke (cr);
first_line_offset = 0;
if (draw_below) {
@@ -631,9 +633,10 @@ item_bar_draw_region (GocItem const *item, cairo_t *cr, double x_0, double y_0,
cairo_move_to (cr, left+3, top+size/2);
cairo_line_to (cr, left+size-4, top+size/2);
}
- } else if (level > 0)
+ } else if (level > 0) {
cairo_move_to (cr, pos, top+pixels/2);
cairo_line_to (cr, pos+len, top+pixels/2);
+ }
} else {
if (next->outline_level > level) {
int left, safety = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]