From 3e4604b4642f6495d6e3f6a1317b1ab52eb4b569 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 20 Sep 2013 20:19:35 +0100 Subject: Related: fdo#69444 additionally care from zero recently-used items case Change-Id: I45c68dd7cac0a6666401ae4833b6ae090882659c --- sfx2/source/control/thumbnailview.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sfx2') 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 ) { -- cgit v1.2.3