diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-10 13:44:33 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-07-10 14:14:27 +0200 |
commit | 32c7ba61a9ce620c1c9544ac469ccfd143e60bb9 (patch) | |
tree | 6c3d0d1f1d0af9bd61c15aede55ae9f1b49f9391 /sw | |
parent | a6e3c2b4800144df40e5f78f6f912cdc6a575a32 (diff) |
fdo#51793: FormatNumber can handle sal_uInt32 values after all...
Change-Id: I9d50bce0278a4aa65873aa816eb991473f556cee
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/fldbas.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/expfld.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/fields/fldbas.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx index 404dcfc66ef0..93c749599074 100644 --- a/sw/inc/fldbas.hxx +++ b/sw/inc/fldbas.hxx @@ -230,7 +230,7 @@ extern sal_uInt16 aTypeTab[]; // General tools. String GetResult(double nVal, sal_uInt32 nNumFmt, sal_uInt16 nLang = LANGUAGE_SYSTEM); void SetErrorStr(const String& rStr); -String FormatNumber(sal_uInt16 nNum, sal_uInt32 nFormat); +String FormatNumber(sal_uInt32 nNum, sal_uInt32 nFormat); // Instances of SwFields and those derived from it occur 0 to n times. // For each class there is one instance of the associated type class. diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx index ba2754c6d208..fee0e9cef0e1 100644 --- a/sw/source/core/fields/expfld.cxx +++ b/sw/source/core/fields/expfld.cxx @@ -880,7 +880,7 @@ void SwSetExpField::SetValue( const double& rAny ) SwValueField::SetValue(rAny); if( IsSequenceFld() ) - sExpand = FormatNumber( (sal_uInt16)GetValue(), GetFormat() ); + sExpand = FormatNumber( (sal_uInt32)GetValue(), GetFormat() ); else sExpand = ((SwValueFieldType*)GetTyp())->ExpandValue( rAny, GetFormat(), GetLanguage()); diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index 3ca892eb4ce9..2a693ea48810 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -434,7 +434,7 @@ SwField * SwField::CopyField() const Beschreibung: Numerierung expandieren --------------------------------------------------------------------*/ -String FormatNumber(sal_uInt16 nNum, sal_uInt32 nFormat) +String FormatNumber(sal_uInt32 nNum, sal_uInt32 nFormat) { if(SVX_NUM_PAGEDESC == nFormat) return String::CreateFromInt32( nNum ); |