Mercurial > projects > dwt-win
comparison dwt/widgets/Spinner.d @ 195:420b18afb09f
Fix: redering bug with digits
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Apr 2008 21:03:53 +0200 |
parents | ee3ee677f5fc |
children | 184ab53b7785 |
comparison
equal
deleted
inserted
replaced
194:3afcd4ddcf90 | 195:420b18afb09f |
---|---|
453 } | 453 } |
454 | 454 |
455 char[] getDecimalSeparator () { | 455 char[] getDecimalSeparator () { |
456 TCHAR[] tchar = NewTCHARs (getCodePage (), 4); | 456 TCHAR[] tchar = NewTCHARs (getCodePage (), 4); |
457 int size = OS.GetLocaleInfo (OS.LOCALE_USER_DEFAULT, OS.LOCALE_SDECIMAL, tchar.ptr, 4); | 457 int size = OS.GetLocaleInfo (OS.LOCALE_USER_DEFAULT, OS.LOCALE_SDECIMAL, tchar.ptr, 4); |
458 return size !is 0 ? TCHARsToStr( tchar[0 .. size] ) : "."; | 458 return size !is 0 ? TCHARsToStr( tchar[0 .. size-1] ) : "."; |
459 } | 459 } |
460 | 460 |
461 /** | 461 /** |
462 * Returns the amount that the receiver's value will be | 462 * Returns the amount that the receiver's value will be |
463 * modified by when the up/down arrows are pressed. | 463 * modified by when the up/down arrows are pressed. |