diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-20 20:19:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-20 20:19:51 +0100 |
commit | 3e4604b4642f6495d6e3f6a1317b1ab52eb4b569 (patch) | |
tree | 28c2e8c104575b48740064508a44bcec6d758521 | |
parent | f51e79aaa8cef49421c875c2a876d8570e8b064f (diff) |
Related: fdo#69444 additionally care from zero recently-used items case
Change-Id: I45c68dd7cac0a6666401ae4833b6ae090882659c
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index ab78488b29f0..e3e1b8f27326 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -568,6 +568,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) switch ( aKeyCode.GetCode() ) { case KEY_RIGHT: + if (!mFilteredItemList.empty()) { if ( bFoundLast && nLastPos + 1 < mFilteredItemList.size() ) { @@ -579,6 +580,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) } break; case KEY_LEFT: + if (!mFilteredItemList.empty()) { if ( nLastPos > 0 ) { @@ -590,6 +592,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) } break; case KEY_DOWN: + if (!mFilteredItemList.empty()) { if ( bFoundLast ) { @@ -614,6 +617,7 @@ void ThumbnailView::KeyInput( const KeyEvent& rKEvt ) } break; case KEY_UP: + if (!mFilteredItemList.empty()) { if ( nLastPos >= mnCols ) { |