]> git.sur5r.net Git - glabels/commitdiff
After setting max size, restore current setting.
authorJim Evins <evins@snaught.com>
Thu, 27 Nov 2003 06:24:40 +0000 (06:24 +0000)
committerJim Evins <evins@snaught.com>
Thu, 27 Nov 2003 06:24:40 +0000 (06:24 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@355 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/object-editor-lsize-page.c

index aef106d993b63be5dbe8e882174c5b2d0f1c8f01..e304f5262c828bfe421c5c46fc573f64a9693919 100644 (file)
@@ -165,6 +165,8 @@ gl_object_editor_set_max_lsize (glObjectEditor      *editor,
                                gdouble              dx_max,
                                gdouble              dy_max)
 {
+       gdouble tmp;
+
        gl_debug (DEBUG_EDITOR, "START");
 
        g_signal_handlers_block_by_func (G_OBJECT(editor->priv->lsize_r_spin),
@@ -178,8 +180,10 @@ gl_object_editor_set_max_lsize (glObjectEditor      *editor,
        gl_debug (DEBUG_EDITOR, "display dx_max,dy_max = %g, %g", dx_max, dy_max);
 
        /* Set widget values */
+       tmp = gtk_spin_button_get_value (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin));
        gtk_spin_button_set_range (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin),
                                   0.0, LENGTH (dx_max, dy_max));
+       gtk_spin_button_set_value (GTK_SPIN_BUTTON (editor->priv->lsize_r_spin), tmp);
 
        g_signal_handlers_unblock_by_func (G_OBJECT(editor->priv->lsize_r_spin),
                                           gl_object_editor_changed_cb,