Commit 8fe693d4 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

shift rotated text into the correct position! Fixes #574813

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



svn path=/trunk/; revision=17185
parent 05f62f67
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
2009-03-10 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/commands.h (cmd_so_set_value): add Sheet* argument.
......
......@@ -6,6 +6,8 @@ Andreas
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.
......
......@@ -128,7 +128,9 @@ print_cell_gtk (GnmCell const *cell, GnmStyle const *mstyle,
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment