diff options
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 3 | ||||
-rw-r--r-- | svx/source/dialog/relfld.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 80de8e560b17..b77b737037ea 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1896,8 +1896,7 @@ void FontSizeBox::SetRelative( sal_Bool bNewRelative ) SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); - SetCustomUnitText(OUString('%')); - SetUnit( FUNIT_CUSTOM ); + SetUnit( FUNIT_PERCENT ); Clear(); sal_uInt16 i = nRelMin; diff --git a/svx/source/dialog/relfld.cxx b/svx/source/dialog/relfld.cxx index 67a4a59d4fca..4d5a505e8ee6 100644 --- a/svx/source/dialog/relfld.cxx +++ b/svx/source/dialog/relfld.cxx @@ -102,8 +102,7 @@ void SvxRelativeField::SetRelative( sal_Bool bNewRelative ) SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); - SetCustomUnitText( OUString('%') ); - SetUnit( FUNIT_CUSTOM ); + SetUnit( FUNIT_PERCENT ); } else { |