Kaydet (Commit) 32c7ba61 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#51793: FormatNumber can handle sal_uInt32 values after all...

Change-Id: I9d50bce0278a4aa65873aa816eb991473f556cee
üst a6e3c2b4
......@@ -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.
......
......@@ -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());
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment