gnumeric r17185 - in trunk: . src
- From: guelzow svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17185 - in trunk: . src
- Date: Wed, 11 Mar 2009 05:43:24 +0000 (UTC)
Author: guelzow
Date: Wed Mar 11 05:43:23 2009
New Revision: 17185
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17185&view=rev
Log:
2009-03-11 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/print-cell.c (print_cell_gtk): shift rotated text into the
correct position! Fixes #574813
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/print-cell.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Wed Mar 11 05:43:23 2009
@@ -6,6 +6,8 @@
content or style. [#554116] [#572818]
* Fix translation of argument names for empty names.
* Don't switch sheets when widgets are adjusted. [#574734]
+ * Fix printing of rotated text (negative angles or non-default
+ alignment). [#574813]
Morten:
* Fix multihead issues with cell comments.
Modified: trunk/src/print-cell.c
==============================================================================
--- trunk/src/print-cell.c (original)
+++ trunk/src/print-cell.c Wed Mar 11 05:43:23 2009
@@ -128,7 +128,9 @@
lines;
lines = lines->next, li++) {
cairo_save (context);
- cairo_move_to (context, PANGO_PIXELS (li->dx), PANGO_PIXELS (li->dy));
+ cairo_move_to (context,
+ PANGO_PIXELS (x + li->dx),
+ PANGO_PIXELS (- y + li->dy));
cairo_rotate (context, rv->rotation * (-M_PI / 180));
pango_cairo_show_layout_line (context, lines->data);
cairo_restore (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]