summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2001-04-18 11:28:15 +0000
committerMalte Timmermann <mt@openoffice.org>2001-04-18 11:28:15 +0000
commit0f641b5aed2d4f4b3c35eaa59896859cb09e0bd2 (patch)
treeaba070bf60e9712c5ea4687d10b0554c97beab88 /vcl
parent948266d969bac84226e3449d6f348b8f9948a356 (diff)
#86017# SetDecDigits: Not more than 9!
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/longcurr.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index a2dbb19a5cf2..e8be9df263cb 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: longcurr.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: th $ $Date: 2001-03-09 15:00:01 $
+ * last change: $Author: mt $ $Date: 2001-04-18 12:28:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -487,6 +487,11 @@ void LongCurrencyFormatter::SetMax( BigInt nNewMax )
void LongCurrencyFormatter::SetDecimalDigits( USHORT nDigits )
{
+// DBG_ASSERT( nDigits < 10, "LongCurrency duerfen nur maximal 9 Nachkommastellen haben" );
+
+ if ( nDigits > 9 )
+ nDigits = 9;
+
International aInter( GetInternational() );
aInter.SetCurrDigits( nDigits );
SetInternational( aInter );