[Libreoffice-commits] core.git: include/sfx2 sfx2/source
Krisztian Pinter
pin.terminator at gmail.com
Thu Aug 15 04:21:20 PDT 2013
include/sfx2/recentdocsview.hxx | 2 --
sfx2/source/control/recentdocsview.cxx | 4 +---
2 files changed, 1 insertion(+), 5 deletions(-)
New commits:
commit aa65b0a4cbd7d7ed85a33b4d9d262a3c88ec533d
Author: Krisztian Pinter <pin.terminator at gmail.com>
Date: Wed Aug 14 15:07:56 2013 +0200
startcenter: Removed no. limit on thumbnails in RecentDocsView
Change-Id: Ia443b3c653d9355cf499e066e8085c7ddefef19e
diff --git a/include/sfx2/recentdocsview.hxx b/include/sfx2/recentdocsview.hxx
index 98f9e9a..9cb77d3 100644
--- a/include/sfx2/recentdocsview.hxx
+++ b/include/sfx2/recentdocsview.hxx
@@ -65,8 +65,6 @@ protected:
long mnTextHeight;
long mnItemPadding;
long mnItemMaxTextLength;
-
- int mnMaxThumbnailItems;
};
#endif // __SFX2_RECENTDOCSVIEW_HXX__
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 0f54865..a532b14 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -45,7 +45,6 @@ RecentDocsView::RecentDocsView( Window* pParent )
, mnTextHeight(30)
, mnItemPadding(5)
, mnItemMaxTextLength(30)
- , mnMaxThumbnailItems(50)
{
SetStyle(GetStyle() | WB_VSCROLL);
setItemMaxTextLength( mnItemMaxTextLength );
@@ -137,8 +136,7 @@ void RecentDocsView::loadRecentDocs()
Clear();
Sequence< Sequence< PropertyValue > > aHistoryList = SvtHistoryOptions().GetList( ePICKLIST );
- int nRecentThumbnailItems = mnMaxThumbnailItems < aHistoryList.getLength() ? mnMaxThumbnailItems : aHistoryList.getLength();
- for ( int i = 0; i < nRecentThumbnailItems; i++ )
+ for ( int i = 0; i < aHistoryList.getLength(); i++ )
{
Sequence< PropertyValue >& rRecentEntry = aHistoryList[i];
More information about the Libreoffice-commits
mailing list