diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 17:40:07 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-05-18 20:32:34 +0200 |
commit | 6bde2e93a2e0f94bc2263928cb27c4b85827822d (patch) | |
tree | 83bc22d76fc391c41a76c7f118b8a5559d0d7f7e /editeng/source | |
parent | 18aa83acfa243741eb4c79a2e11aec6eaf1a9f02 (diff) |
tdf#107176: just return initial selection when there's no range
See https://bugs.documentfoundation.org/show_bug.cgi?id=107176#c2
Change-Id: I606b7f248821bb24b3a9026ecd26a9bc93971748
Reviewed-on: https://gerrit.libreoffice.org/36582
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 4f1114c756cc..0715212ff856 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -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() ); |