diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-08-31 13:21:26 -0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-09-02 20:17:51 +0000 |
commit | 1dd686175f2830227c461054f6036fb0095c4352 (patch) | |
tree | 638f08bb537036fefd8a81e89eea1ed26c07888d | |
parent | 6bb2da3f696d724117a1f3ff5e23e5a7fb3ed314 (diff) |
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@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
-rw-r--r-- | starmath/source/edit.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 9328f23ab5fa..5ccdd754bdee 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() == "<?>") |