[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - editeng/source

Julien Nabet serval2412 at yahoo.fr
Mon May 29 15:28:48 UTC 2017


 editeng/source/editeng/impedit4.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 83e87f7579ecf63e810c7556661e4f95a8309aff
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Apr 16 17:40:07 2017 +0200

    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 at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 6bde2e93a2e0f94bc2263928cb27c4b85827822d)
    Reviewed-on: https://gerrit.libreoffice.org/37788
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index dde54ad48dc4..b0264d4f00b4 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() );


More information about the Libreoffice-commits mailing list