Skip to content

Commit

Permalink
tdf#107176: just return initial selection when there's no range
Browse files Browse the repository at this point in the history
See https://bugs.documentfoundation.org/show_bug.cgi?id=107176#c2

Change-Id: I606b7f248821bb24b3a9026ecd26a9bc93971748
Reviewed-on: https://gerrit.libreoffice.org/36582
Tested-by: Jenkins <[email protected]>
Reviewed-by: Julien Nabet <[email protected]>
  • Loading branch information
serval2412 committed May 18, 2017
1 parent 18aa83a commit 6bde2e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions editeng/source/editeng/impedit4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2719,6 +2719,10 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection,
if ( !aSel.HasRange() )
aSel = SelectWord( aSel );

// tdf#107176: if there's still no range, just return aSel
if ( !aSel.HasRange() )
return aSel;

EditSelection aNewSel( aSel );

const sal_Int32 nStartNode = aEditDoc.GetPos( aSel.Min().GetNode() );
Expand Down

0 comments on commit 6bde2e9

Please sign in to comment.