[poppler] glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Oct 4 03:29:24 PDT 2013


 glib/demo/annots.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a6b1fc1a2ca83b3e4c52bcaa95b99d0289354f4b
Author: Germán Poo-Caamaño <gpoo at gnome.org>
Date:   Sun Sep 29 22:50:42 2013 -0700

    glib-demo: Fix rectangle calculation for new annotations in demo
    
    https://bugs.freedesktop.org/show_bug.cgi?id=69978

diff --git a/glib/demo/annots.c b/glib/demo/annots.c
index 3ff7f12..389aa47 100644
--- a/glib/demo/annots.c
+++ b/glib/demo/annots.c
@@ -821,8 +821,8 @@ pgd_annots_add_annot (GtkWidget     *button,
 
     rect.x1 = gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_x1));
     rect.x2 = gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_x2));
-    rect.y1 = height - gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_y2));
-    rect.y2 = height - gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_y1));
+    rect.y1 = height - gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_y1));
+    rect.y2 = height - gtk_spin_button_get_value (GTK_SPIN_BUTTON (rect_y2));
     annot = poppler_annot_text_new (demo->doc, &rect);
     poppler_page_add_annot (page, annot);
 


More information about the poppler mailing list