diff options
author | Armin Weiss <aw@openoffice.org> | 2001-02-07 15:20:06 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2001-02-07 15:20:06 +0000 |
commit | ae0816a808757d2a8328fa342b07515e0241fa46 (patch) | |
tree | 8cf1557455454344cdc3b06beee2f14ab33662e4 /svx/source/svdraw/svdmodel.cxx | |
parent | 13add8ad679b30c8ffd65ff6ade8d02ddb5974db (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.cxx | 8 |
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()); |