[Libreoffice-commits] core.git: starmath/source
Marcos Paulo de Souza
marcos.souza.org at gmail.com
Mon Sep 2 13:18:11 PDT 2013
starmath/source/edit.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 1dd686175f2830227c461054f6036fb0095c4352
Author: Marcos Paulo de Souza <marcos.souza.org at 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 <thomas at arnhold.org>
Tested-by: Thomas Arnhold <thomas at 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() == "<?>")
More information about the Libreoffice-commits
mailing list