starmath/source/edit.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1dd686175f2830227c461054f6036fb0095c4352
Author: Marcos Paulo de Souza <marcos.souza....@gmail.com>
Date:   Sat Aug 31 13:21:26 2013 -0300

    fdo#43090: Last fix for autoclose brackets in Math
    
    We need to swap values of selection in Math when they're make in RTL 
selection, because Math don't support RTL.
    
    Change-Id: I4f8acfb560fa486ecc9f2569f1f331fa6f28d2d4
    Reviewed-on: https://gerrit.libreoffice.org/5722
    Reviewed-by: Thomas Arnhold <tho...@arnhold.org>
    Tested-by: Thomas Arnhold <tho...@arnhold.org>

diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 9328f23..5ccdd75 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -421,6 +421,9 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
 
         bool autoClose = false;
         ESelection aSelection = pEditView->GetSelection();
+        // as we don't support RTL in Math, we need to swap values from 
selection when they were done
+        // in RTL form
+        aSelection.Adjust();
         OUString selected = pEditView->GetEditEngine()->GetText(aSelection);
 
         if (selected.trim() == "<?>")
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to