Author: hanya Date: Sun Jan 19 14:16:45 2014 New Revision: 1559499 URL: http://svn.apache.org/r1559499 Log: #i56998# use FUNIT_PERCENT on fields that allow relative value
Modified: openoffice/trunk/main/svtools/source/control/ctrlbox.cxx openoffice/trunk/main/svx/source/dialog/relfld.cxx Modified: openoffice/trunk/main/svtools/source/control/ctrlbox.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svtools/source/control/ctrlbox.cxx?rev=1559499&r1=1559498&r2=1559499&view=diff ============================================================================== --- openoffice/trunk/main/svtools/source/control/ctrlbox.cxx (original) +++ openoffice/trunk/main/svtools/source/control/ctrlbox.cxx Sun Jan 19 14:16:45 2014 @@ -1387,8 +1387,7 @@ void FontSizeBox::SetRelative( sal_Bool SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); - SetCustomUnitText( '%' ); - SetUnit( FUNIT_CUSTOM ); + SetUnit( FUNIT_PERCENT ); Clear(); sal_uInt16 i = nRelMin; Modified: openoffice/trunk/main/svx/source/dialog/relfld.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/dialog/relfld.cxx?rev=1559499&r1=1559498&r2=1559499&view=diff ============================================================================== --- openoffice/trunk/main/svx/source/dialog/relfld.cxx (original) +++ openoffice/trunk/main/svx/source/dialog/relfld.cxx Sun Jan 19 14:16:45 2014 @@ -123,8 +123,7 @@ void SvxRelativeField::SetRelative( sal_ SetDecimalDigits( 0 ); SetMin( nRelMin ); SetMax( nRelMax ); - SetCustomUnitText( String( sal_Unicode( '%' ) ) ); - SetUnit( FUNIT_CUSTOM ); + SetUnit( FUNIT_PERCENT ); } else {