Author: hanya Date: Sun Jan 19 14:40:52 2014 New Revision: 1559501 URL: http://svn.apache.org/r1559501 Log: #i56998# add space separator between zoom value and percent on zoom statusbar item
Modified: openoffice/trunk/main/svx/source/stbctrls/zoomctrl.cxx Modified: openoffice/trunk/main/svx/source/stbctrls/zoomctrl.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/stbctrls/zoomctrl.cxx?rev=1559501&r1=1559500&r2=1559501&view=diff ============================================================================== --- openoffice/trunk/main/svx/source/stbctrls/zoomctrl.cxx (original) +++ openoffice/trunk/main/svx/source/stbctrls/zoomctrl.cxx Sun Jan 19 14:40:52 2014 @@ -132,7 +132,7 @@ void SvxZoomStatusBarControl::StateChang const SfxUInt16Item* pItem = (const SfxUInt16Item*)pState; nZoom = pItem->GetValue(); String aStr( String::CreateFromInt32(nZoom) ); - aStr += '%'; + aStr.AppendAscii( " %" ); GetStatusBar().SetItemText( GetId(), aStr ); if ( pState->ISA(SvxZoomItem) ) @@ -168,7 +168,7 @@ void SvxZoomStatusBarControl::StateChang void SvxZoomStatusBarControl::Paint( const UserDrawEvent& ) { String aStr( String::CreateFromInt32( nZoom )); - aStr += '%'; + aStr.AppendAscii( " %" ); GetStatusBar().SetItemText( GetId(), aStr ); } @@ -212,7 +212,7 @@ void SvxZoomStatusBarControl::Command( c sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb) { - long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX%")); + long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX %")); return nWidth1; }