diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-04-23 14:55:52 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-04-24 20:00:59 +0200 |
commit | 777223a733d6118926f6800e5b13dd4ad7dd7a10 (patch) | |
tree | 9dab2d94d2e68acaea6ab607e22fdec392981d0e /editeng | |
parent | 7e8141db8e4e17636a32a08e01190e44368f5b77 (diff) |
Handle keyinput properly in case of BottomToTop vertical text
Change-Id: I2b0f7cee9a4a7d7ad154c705f84a8b995b4f23a1
Reviewed-on: https://gerrit.libreoffice.org/36830
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 8c46185bf28f61e674186694e4944c1f8b3a9c00)
Reviewed-on: https://gerrit.libreoffice.org/36887
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index b38db62f411a..c2126570be2b 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -739,8 +739,10 @@ EditSelection ImpEditEngine::MoveCursor( const KeyEvent& rKeyEvent, EditView* pE EditPaM aOldPaM( aPaM ); TextDirectionality eTextDirection = TextDirectionality::LeftToRight_TopToBottom; - if ( IsVertical() ) + if (IsVertical() && IsTopToBottom()) eTextDirection = TextDirectionality::TopToBottom_RightToLeft; + else if (IsVertical() && !IsTopToBottom()) + eTextDirection = TextDirectionality::BottomToTop_LeftToRight; else if ( IsRightToLeft( GetEditDoc().GetPos( aPaM.GetNode() ) ) ) eTextDirection = TextDirectionality::RightToLeft_TopToBottom; |