From: Jim Evins Date: Sun, 21 Dec 2003 04:02:01 +0000 (+0000) Subject: In size_reset_cb() fixed broken, un-initialized, use of w_base and h_base. This... X-Git-Tag: glabels-2_3_0~514 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f77d3c19cd97dd2d55dd3bff8a4d5046ef6e2b6;p=glabels In size_reset_cb() fixed broken, un-initialized, use of w_base and h_base. This was accidentally introduced when modified to track gl_prefs. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@380 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/object-editor-size-page.c b/glabels2/src/object-editor-size-page.c index 817524cd..874b2606 100644 --- a/glabels2/src/object-editor-size-page.c +++ b/glabels2/src/object-editor-size-page.c @@ -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);