patch/bug fix - 642

Stephen Hack (shack@uiuc.edu)
Sun, 7 Nov 1999 21:31:30 -0600


--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii

Bug fix patch - bug 642

The bug was in placing tabs in non-inches units. If you look at the code,
it's obvious, for af/util/xp/ut_units.cpp :: UT_convertToDimensionString did
not actually do the conversion.

If turned out to be a variable problem. We we doing the conversion, the
returning the value passed in as a parameter.

Check this in a mark 642 as closed.

-shack

--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=p-bug-642

Index: src/af/util/xp/ut_units.cpp
===================================================================
RCS file: /home/shack/cvs/abi/src/af/util/xp/ut_units.cpp,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 ut_units.cpp
*** src/af/util/xp/ut_units.cpp 1999/10/29 07:06:53 1.1.1.1
--- src/af/util/xp/ut_units.cpp 1999/11/08 03:22:23
***************
*** 160,166 ****
break;
}
setlocale(LC_NUMERIC,"C");
! sprintf(buf,bufFormat,value);
//UT_DEBUGMSG(("ConvertToDimensionString: [%g] --> [%s]\n",valueScaled,buf));
setlocale(LC_NUMERIC,""); // restore original locale

--- 160,166 ----
break;
}
setlocale(LC_NUMERIC,"C");
! sprintf(buf,bufFormat,valueScaled);
//UT_DEBUGMSG(("ConvertToDimensionString: [%g] --> [%s]\n",valueScaled,buf));
setlocale(LC_NUMERIC,""); // restore original locale

--Qxx1br4bt0+wmkIi--



This archive was generated by hypermail 1.03b2.