From 531d5cc55f2e07e5fc99c4c1fba0479219289a3e Mon Sep 17 00:00:00 2001 From: ferrieux Date: Fri, 28 Nov 2008 17:05:59 +0000 Subject: Fix stupid bug in millimeter patch (conditionally uninited var) --- generic/tkObj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generic/tkObj.c b/generic/tkObj.c index c8bc746..8ca2104 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkObj.c,v 1.23 2008/11/27 23:47:09 ferrieux Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.24 2008/11/28 17:05:59 ferrieux Exp $ */ #include "tkInt.h" @@ -267,6 +267,8 @@ Tk_GetDoublePixelsFromObj( /* internally "shimmer" to pixel units */ pixelPtr->units=-1; pixelPtr->value=d; + } else { + d=pixelPtr->value; } } *doublePtr = d; -- cgit v0.12