]> git.sur5r.net Git - glabels/commitdiff
Fixed coordinate system for rotated labels.
authorJim Evins <evins@snaught.com>
Sat, 5 Oct 2002 04:50:02 +0000 (04:50 +0000)
committerJim Evins <evins@snaught.com>
Sat, 5 Oct 2002 04:50:02 +0000 (04:50 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@147 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/print.c

index e98fdba4f6a35c3d66dce68617d3c5b888219d0a..d978ee7c5822068cd9c0ba8d3189dfeff1a4fe9b 100644 (file)
@@ -496,7 +496,8 @@ print_label (PrintInfo     *pi,
        gnome_print_translate (pi->pc, x, y);
        if (gl_label_get_rotate_flag (label)) {
                gl_debug (DEBUG_PRINT, "Rotate flag set");
-               gnome_print_rotate (pi->pc, 90.0);
+               gnome_print_rotate (pi->pc, -90.0);
+               gnome_print_translate (pi->pc, -width, 0.0);
        }
        if ( reverse_flag ) {
                gnome_print_translate (pi->pc, width, 0.0);