Kaydet (Commit) 1dd68617 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Thomas Arnhold

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/5722Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
üst 6bb2da3f
......@@ -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() == "<?>")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment