[gnumeric] GUI: clean out some old code left-over in the cairo conversion.



commit 2f8f101482ba20869f8d7fa14ebbe76a7667f784
Author: Morten Welinder <terra gnome org>
Date:   Fri Jan 6 16:08:46 2012 -0500

    GUI: clean out some old code left-over in the cairo conversion.

 ChangeLog       |    4 ++++
 src/cell-draw.c |    6 ------
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 20c9d7b..b5ccaa8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-06  Morten Welinder  <terra gnome org>
+
+	* src/cell-draw.c (cell_draw): Clean out old code.
+
 2012-01-05  Morten Welinder  <terra gnome org>
 
 	* src/workbook-view.c (wb_view_auto_expr_recalc): Restore
diff --git a/src/cell-draw.c b/src/cell-draw.c
index 2daaba9..ef6ee80 100644
--- a/src/cell-draw.c
+++ b/src/cell-draw.c
@@ -428,12 +428,9 @@ cell_draw (GnmCell const *cell, cairo_t *cr,
 
 		if (rv->rotation) {
 			GnmRenderedRotatedValue *rrv = (GnmRenderedRotatedValue *)rv;
-			PangoContext *context = pango_layout_get_context (rv->layout);
 			struct GnmRenderedRotatedValueInfo const *li = rrv->lines;
 			GSList *lines;
 
-			pango_context_set_matrix (context, &rrv->rotmat);
-			pango_layout_context_changed (rv->layout);
 			for (lines = pango_layout_get_lines (rv->layout);
 			     lines;
 			     lines = lines->next, li++) {
@@ -443,9 +440,6 @@ cell_draw (GnmCell const *cell, cairo_t *cr,
 				pango_cairo_show_layout_line (cr, lines->data);
 				cairo_restore (cr);
 			}
-			pango_context_set_matrix (context, NULL);
-			pango_layout_context_changed (rv->layout);
-			cairo_new_path (cr);
 		} else {
 			cairo_save (cr);
 			cairo_translate (cr, x1 + PANGO_PIXELS (x), y1 + PANGO_PIXELS (y));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]