diff options
author | Steve Yin <steve_y@apache.org> | 2013-11-28 12:09:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-28 13:32:30 +0000 |
commit | cc5518ca61b209408a9d5262bbdcc39efccdd72d (patch) | |
tree | 23f4be456f58a52ad53a3aaab82894b91a4f797d /sd/source/ui/func/fudraw.cxx | |
parent | 0a05120e1a08c29b3495878d2a3b5fb30d344c6c (diff) |
Integrate branch of IAccessible2
Change-Id: Ibf3be46e8619c2dce9636e8a90a6703f3e28ba33
Diffstat (limited to 'sd/source/ui/func/fudraw.cxx')
-rw-r--r-- | sd/source/ui/func/fudraw.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx index 0acb1ec4c03e..d19f9f87f750 100644 --- a/sd/source/ui/func/fudraw.cxx +++ b/sd/source/ui/func/fudraw.cxx @@ -426,10 +426,14 @@ sal_Bool FuDraw::KeyInput(const KeyEvent& rKEvt) // changeover to the next object if(!mpView->MarkNextObj( !aCode.IsShift() )) { - // No next object: go over open end and - // get first from the other side - mpView->UnmarkAllObj(); - mpView->MarkNextObj(!aCode.IsShift()); + //If there is only one object, don't do the UnmarkAlllObj() & MarkNextObj(). + if ( mpView->GetMarkableObjCount() > 1 && mpView->AreObjectsMarked() ) + { + // No next object: go over open end and get first from + // the other side + mpView->UnmarkAllObj(); + mpView->MarkNextObj(!aCode.IsShift()); + } } if(mpView->AreObjectsMarked()) |