diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-04-16 17:40:07 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-05-30 10:19:53 +0200 |
commit | 9622c0c6a2be508cd5f9655bf383c24ac0e450e4 (patch) | |
tree | 6427e25f8d7ce96d0025cf41f42baf0aaa502cec | |
parent | 81272683d31000dfa450dfbdc45198486412840a (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>
(cherry picked from commit 6bde2e93a2e0f94bc2263928cb27c4b85827822d)
Reviewed-on: https://gerrit.libreoffice.org/37788
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit 83e87f7579ecf63e810c7556661e4f95a8309aff)
-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 7cf098b3c279..36dfeea6b0da 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2722,6 +2722,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() ); |