summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmodel.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2001-02-07 15:20:06 +0000
committerArmin Weiss <aw@openoffice.org>2001-02-07 15:20:06 +0000
commitae0816a808757d2a8328fa342b07515e0241fa46 (patch)
tree8cf1557455454344cdc3b06beee2f14ab33662e4 /svx/source/svdraw/svdmodel.cxx
parent13add8ad679b30c8ffd65ff6ade8d02ddb5974db (diff)
#83257# the second condition needs to be <= since inside this loop
also the leading zero is inserted.
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 8a4586b0dd91..ad76a7672c27 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdmodel.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: aw $ $Date: 2001-01-26 14:08:54 $
+ * last change: $Author: aw $ $Date: 2001-02-07 16:20:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1209,7 +1209,9 @@ void SdrModel::TakeMetricStr(long nVal, XubString& rStr, FASTBOOL bNoUnitChars)
nKomma = 0;
}
- if(nKomma > 0 && rStr.Len() < nKomma)
+ // #83257# the second condition needs to be <= since inside this loop
+ // also the leading zero is inserted.
+ if(nKomma > 0 && rStr.Len() <= nKomma)
{
// Fuer Komma evtl. vorne Nullen dran
sal_Int32 nAnz(nKomma - rStr.Len());