Index: src/wp/ap/xp/ap_Ruler.cpp =================================================================== RCS file: /cvsroot/abi/src/wp/ap/xp/ap_Ruler.cpp,v retrieving revision 1.16 diff -u -5 -r1.16 ap_Ruler.cpp --- src/wp/ap/xp/ap_Ruler.cpp 26 Feb 2005 16:37:38 -0000 1.16 +++ src/wp/ap/xp/ap_Ruler.cpp 5 Apr 2005 10:21:32 -0000 @@ -20,10 +20,11 @@ // Common utilities for the left and top rulers. #include #include "ut_types.h" #include "ut_assert.h" +#include "ut_locale.h" #include "gr_Graphics.h" #include "ap_Ruler.h" #define SCALE_IN 10 #define SCALE_CM 10 @@ -48,17 +49,20 @@ // On a 75 dpi screen, a 1/32 inch is 2.34375, so i set the scale to 100000. dBasicUnit = 0.125; tickUnitScale = SCALE_IN; - sprintf(Buffer, "%fin", dBasicUnit * (double)tickUnitScale); - tickUnit = UT_convertToLogicalUnits(Buffer); // 1/8th inch is our basic unit - tickLong = 4; // draw long ticks every 4 units (1/2 inch) - tickLabel = 8; // draw labeled ticks every 8 units (1 inch) - tickScale = 1; // label increment - sprintf(Buffer, "%fin", (dBasicUnit / 2 * (double)tickUnitScale)); - dragDelta = UT_convertToLogicalUnits(Buffer); // 1/16th inch is mouse resolution + { + UT_LocaleTransactor t(LC_NUMERIC,"C"); + sprintf(Buffer, "%fin", dBasicUnit * (double)tickUnitScale); + tickUnit = UT_convertToLogicalUnits(Buffer); // 1/8th inch is our basic unit + tickLong = 4; // draw long ticks every 4 units (1/2 inch) + tickLabel = 8; // draw labeled ticks every 8 units (1 inch) + tickScale = 1; // label increment + sprintf(Buffer, "%fin", (dBasicUnit / 2 * (double)tickUnitScale)); + dragDelta = UT_convertToLogicalUnits(Buffer); // 1/16th inch is mouse resolution + } break; case DIM_CM: dBasicUnit = 0.25; tickUnitScale = SCALE_CM;