committed, thanks.
Tomas P.S. I did not have a chance to compile on Linux (my monitor just died and I will have to reconfigure X for the ancient 14in monitor that had to take its place). > Fix for Bugzilla Bug 2591 > (Columns setup measure unit is always inches) > > What this does: > > in ut_units.cpp > UT_reformatDimensionString > Catch nulls, convert them to 0.0in, print debug msg. > This prevents a segfault. > > in ap_UnixDialog_Columns.cpp > Just changed the code formatting. > > in ap_Dialog_Columns.cpp > add function _convertToPreferedUnits > uses function to convert units to the same > units set in the prefs. > > Note: > This calls UT_reformatDimensionString which > returns a pointer to a local string. Because > the convert function gets called back to back > in this file, you need to copy the data out > of that local before hitting it again, hence > the UT_XML_strncpy and setting of the parameter > pRet. > > in ap_Dialog_Columns.h > modifications necessary to support changes to > the .cpp file. > > > - > Rob Altenburg >
