Kaydet (Commit) fc6fc5b5 authored tarafından Tsutomu Uchino's avatar Tsutomu Uchino

#i56998# use FUNIT_PERCENT on fields that allow relative value

üst 4f5b26a9
...@@ -1387,8 +1387,7 @@ void FontSizeBox::SetRelative( sal_Bool bNewRelative ) ...@@ -1387,8 +1387,7 @@ void FontSizeBox::SetRelative( sal_Bool bNewRelative )
SetDecimalDigits( 0 ); SetDecimalDigits( 0 );
SetMin( nRelMin ); SetMin( nRelMin );
SetMax( nRelMax ); SetMax( nRelMax );
SetCustomUnitText( '%' ); SetUnit( FUNIT_PERCENT );
SetUnit( FUNIT_CUSTOM );
Clear(); Clear();
sal_uInt16 i = nRelMin; sal_uInt16 i = nRelMin;
......
...@@ -123,8 +123,7 @@ void SvxRelativeField::SetRelative( sal_Bool bNewRelative ) ...@@ -123,8 +123,7 @@ void SvxRelativeField::SetRelative( sal_Bool bNewRelative )
SetDecimalDigits( 0 ); SetDecimalDigits( 0 );
SetMin( nRelMin ); SetMin( nRelMin );
SetMax( nRelMax ); SetMax( nRelMax );
SetCustomUnitText( String( sal_Unicode( '%' ) ) ); SetUnit( FUNIT_PERCENT );
SetUnit( FUNIT_CUSTOM );
} }
else else
{ {
......
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