]> git.sur5r.net Git - glabels/commitdiff
Fixes crash on XD2: start with an object size of 1pt x 1pt, instead of 0 x 0.
authorJim Evins <evins@snaught.com>
Sat, 19 Jul 2003 00:25:01 +0000 (00:25 +0000)
committerJim Evins <evins@snaught.com>
Sat, 19 Jul 2003 00:25:01 +0000 (00:25 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@269 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/view-image.c

index 89bf682cc7499502d2ee9ea1eada304ebfcb92e9..5ae369704ff6c912d510d0460980101e290d2423 100644 (file)
@@ -629,8 +629,6 @@ gl_view_image_create_event_handler (GnomeCanvas *canvas,
        static gboolean     dragging = FALSE;
        static glViewObject *view_image;
        static GObject      *object;
-       gdouble             line_width;
-       guint               line_color, fill_color;
        gdouble             x, y, w, h;
 
        gl_debug (DEBUG_VIEW, "");
@@ -653,7 +651,7 @@ gl_view_image_create_event_handler (GnomeCanvas *canvas,
                        gl_label_object_set_position (GL_LABEL_OBJECT(object),
                                                     x, y);
                        gl_label_object_set_size (GL_LABEL_OBJECT(object),
-                                                 0.0, 0.0);
+                                                 1.0, 1.0);
                        view_image = gl_view_image_new (GL_LABEL_IMAGE(object),
                                                        view);
                        x0 = x;