]> git.sur5r.net Git - glabels/commitdiff
In size_reset_cb() fixed broken, un-initialized, use of w_base and h_base. This...
authorJim Evins <evins@snaught.com>
Sun, 21 Dec 2003 04:02:01 +0000 (04:02 +0000)
committerJim Evins <evins@snaught.com>
Sun, 21 Dec 2003 04:02:01 +0000 (04:02 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@380 f5e0f49d-192f-0410-a22d-a8d8700d0965

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

index 817524cd34daaa0f6f6af4cea4daaf50c8037bb4..874b26069ec154d8eef48712eaa84e7cf5b492ee 100644 (file)
@@ -236,8 +236,8 @@ size_reset_cb (glObjectEditor *editor)
                                         G_CALLBACK (h_spin_cb),
                                         editor);
 
-       w_base *= editor->priv->units_per_point;
-       h_base *= editor->priv->units_per_point;
+       w_base = editor->priv->w_base * editor->priv->units_per_point;
+       h_base = editor->priv->h_base * editor->priv->units_per_point;
 
        gtk_spin_button_set_value (GTK_SPIN_BUTTON (editor->priv->size_w_spin),
                                   w_base);