sfx2/source/control/thumbnailview.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 3e4604b4642f6495d6e3f6a1317b1ab52eb4b569 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Sep 20 20:19:35 2013 +0100 Related: fdo#69444 additionally care from zero recently-used items case Change-Id: I45c68dd7cac0a6666401ae4833b6ae090882659c diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index ab78488..e3e1b8f 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 ) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits