[PATCH libreoffice-4-0] fdo#62659: only select items in ThumbnailView on TabStop
Bosdonnat Cedric (via Code Review)
gerrit at gerrit.libreoffice.org
Mon Mar 25 10:23:58 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3034
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/34/3034/1
fdo#62659: only select items in ThumbnailView on TabStop
Change-Id: I024df8520f0daf2cc2e9e5f041e1ff18cb3689ec
(cherry picked from commit f8a3582d4cbcf6a705f724b921e370c739ecee35)
---
M sfx2/source/control/thumbnailview.cxx
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 08be7cb..0da633f 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -126,6 +126,7 @@
}
mItemList.clear();
+ mFilteredItemList.clear();
}
void ThumbnailView::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
@@ -680,17 +681,20 @@
void ThumbnailView::GetFocus()
{
- // Select the first item if nothing selected
- int nSelected = -1;
- for (size_t i = 0, n = mItemList.size(); i < n && nSelected == -1; ++i)
+ if(GETFOCUS_TAB & GetGetFocusFlags())
{
- if (mItemList[i]->isSelected())
- nSelected = i;
- }
+ // Select the first item if nothing selected
+ int nSelected = -1;
+ for (size_t i = 0, n = mItemList.size(); i < n && nSelected == -1; ++i)
+ {
+ if (mItemList[i]->isSelected())
+ nSelected = i;
+ }
- if ( nSelected == -1 && mItemList.size( ) > 0 )
- {
- SelectItem( 1 );
+ if ( nSelected == -1 && mItemList.size( ) > 0 )
+ {
+ SelectItem( 1 );
+ }
}
// Tell the accessible object that we got the focus.
--
To view, visit https://gerrit.libreoffice.org/3034
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I024df8520f0daf2cc2e9e5f041e1ff18cb3689ec
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
More information about the LibreOffice
mailing list