[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 786
Date : Thu Apr 6 18:13:20 BST 2006
Changed paths:
M /Trunk/XaraLX/tools/shadinfo.cpp
Fixed broken conversion to percentage in info bar
Diff:
Index: Trunk/XaraLX/tools/shadinfo.cpp
===================================================================
--- Trunk/XaraLX/tools/shadinfo.cpp (revision 785)
+++ Trunk/XaraLX/tools/shadinfo.cpp (revision 786)
@@ -2531,11 +2531,10 @@
INT32 percent = (INT32)(100 - (dDarkness * 100));
// Set the percentage string
-// TCHAR Str[32];
-// String_32 temp(_R(IDS_PERCENT_FORMAT));
-// wsprintf(Str, temp, percent);
-// String_32 PercentStr(Str);
- String_32 PercentStr(_R(IDS_PERCENT_FORMAT), percent);
+ TCHAR Str[32];
+ String_32 temp(_R(IDS_PERCENT_FORMAT));
+ tsprintf(Str, 32, temp, percent);
+ String_32 PercentStr(Str);
pSoftShadowInfoBar->SetStringGadgetValue(_R(IDC_SHADOWTRANSP_EDIT), &PercentStr);
}
Xara