diff options
author | Justin Luth <justin_luth@sil.org> | 2015-09-18 15:28:38 +0300 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-09-26 05:50:19 +0000 |
commit | e2c7ef060397c4e0a0297b14b008596fb1c089a4 (patch) | |
tree | 0c74803a7e19595ad00c56b32f50d53edeaad20f /sd/source | |
parent | fc3e36c4188888c7a4277d7f9c6fff1db106fb34 (diff) |
making alt-x code consistent
Recent reviewer's comments apply to previously committed code. Made
the changes and tested each module.
Change-Id: Id67ff103797f18cf233f728b8f93a7747a42e02f
Reviewed-on: https://gerrit.libreoffice.org/18713
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index d9e0a9977ac2..9a86ddbd0f10 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -840,14 +840,14 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) case SID_UNICODE_NOTATION_TOGGLE: { - if ( mpDrawView->IsTextEdit() ) + if( mpDrawView->IsTextEdit() ) { OutlinerView* pOLV = mpDrawView->GetTextEditOutlinerView(); - if (pOLV) + if( pOLV ) { OUString sInput = pOLV->GetSurroundingText(); ESelection aSel( pOLV->GetSelection() ); - if ( aSel.nStartPos > aSel.nEndPos ) + if( aSel.nStartPos > aSel.nEndPos ) aSel.nEndPos = aSel.nStartPos; //calculate a valid end-position by reading logical characters @@ -861,7 +861,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) aSel.nEndPos = nUtf16Pos; } - ToggleUnicodeCodepoint aToggle = ToggleUnicodeCodepoint(); + ToggleUnicodeCodepoint aToggle; while( nUtf16Pos && aToggle.AllowMoreInput( sInput[nUtf16Pos-1]) ) --nUtf16Pos; OUString sReplacement = aToggle.ReplacementString(); |