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

Julien Nabet serval2412 at yahoo.fr
Thu May 18 18:33:50 UTC 2017


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

New commits:
commit dddd9669e8b1c915906af0338e5d3896603b29f5
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/37787
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

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() );


More information about the Libreoffice-commits mailing list