Author: orw Date: Wed Mar 27 09:19:55 2013 New Revision: 1461463 URL: http://svn.apache.org/r1461463 Log: #121798# - minor improvement of the selection in the Line Spacing popup control
Modified: openoffice/branches/sidebar/main/svx/source/sidebar/text/TextCharacterSpacingControl.cxx Modified: openoffice/branches/sidebar/main/svx/source/sidebar/text/TextCharacterSpacingControl.cxx URL: http://svn.apache.org/viewvc/openoffice/branches/sidebar/main/svx/source/sidebar/text/TextCharacterSpacingControl.cxx?rev=1461463&r1=1461462&r2=1461463&view=diff ============================================================================== --- openoffice/branches/sidebar/main/svx/source/sidebar/text/TextCharacterSpacingControl.cxx (original) +++ openoffice/branches/sidebar/main/svx/source/sidebar/text/TextCharacterSpacingControl.cxx Wed Mar 27 09:19:55 2013 @@ -211,9 +211,9 @@ void TextCharacterSpacingControl::Rearra long nBig = maEditKerning.Normalize(nKerning); nKerning = LogicToLogic( nBig, eOrgUnit, ePntUnit ); - if ( nKerning > 0 ) + if ( nKerning > 0 ) { - maFTBy.Enable(); + maFTBy.Enable(); maEditKerning.Enable(); maEditKerning.SetMax( 9999 ); maEditKerning.SetLast( 9999 ); @@ -229,7 +229,8 @@ void TextCharacterSpacingControl::Rearra } else { - maVSSpacing.SetNoSelection(); + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); mbVS = false; } } @@ -252,7 +253,8 @@ void TextCharacterSpacingControl::Rearra } else { - maVSSpacing.SetNoSelection(); + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); mbVS = false; } } @@ -270,7 +272,8 @@ void TextCharacterSpacingControl::Rearra else if(bLBAvailable && !bAvailable) { //modified - maVSSpacing.SetNoSelection(); + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); mbVS = false; maLBKerning.Enable(); maFTSpacing.Enable(); @@ -281,7 +284,8 @@ void TextCharacterSpacingControl::Rearra } else { - maVSSpacing.SetNoSelection(); + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); mbVS = false; maEditKerning.SetText(String()); maLBKerning.SetNoSelection(); @@ -394,7 +398,8 @@ IMPL_LINK(TextCharacterSpacingControl, K if ( maVSSpacing.GetSelectItemId() > 0 ) { - maVSSpacing.SetNoSelection(); //modify + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); maVSSpacing.Format(); Invalidate(); maVSSpacing.StartSelection(); @@ -406,7 +411,8 @@ IMPL_LINK(TextCharacterSpacingControl, K { if ( maVSSpacing.GetSelectItemId() > 0 ) { - maVSSpacing.SetNoSelection(); //modify + maVSSpacing.SetNoSelection(); + maVSSpacing.SelectItem(0); maVSSpacing.Format(); Invalidate(); maVSSpacing.StartSelection();