diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-15 23:39:39 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-16 20:34:59 +0900 |
commit | cb6b1a6c7c66801f5ba9ff7bd80cc666c8ada0cb (patch) | |
tree | e3e999f184cac83d2a36906c87369dd74d6acf29 /sfx2/source/control/recentdocsviewitem.cxx | |
parent | 521dbb3ea329a987accfe9ff39870b3a829bf6b8 (diff) |
Provide thumbnail size via constructor for RecentDocsViewItem
Change-Id: Ic206ebff28683da2b1daf23039820c2184788595
Diffstat (limited to 'sfx2/source/control/recentdocsviewitem.cxx')
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index c8f19f46720c..8f68306ef987 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -31,7 +31,7 @@ using namespace drawinglayer::primitive2d; using namespace drawinglayer::processor2d; RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rURL, - const OUString &rTitle, const BitmapEx &rThumbnail, sal_uInt16 nId) + const OUString &rTitle, const BitmapEx &rThumbnail, sal_uInt16 nId, long nThumbnailSize) : ThumbnailViewItem(rView, nId), maURL(rURL), m_bRemoveIconHighlighted(false), @@ -46,9 +46,6 @@ RecentDocsViewItem::RecentDocsViewItem(ThumbnailView &rView, const OUString &rUR if( m_sHelpText.isEmpty() ) m_sHelpText = aURLObj.GetURLNoPass(); - RecentDocsView& rRecentView = dynamic_cast<RecentDocsView&>(rView); - long nThumbnailSize = rRecentView.GetThumbnailSize(); - if (aTitle.isEmpty()) aTitle = aURLObj.GetName(INetURLObject::DECODE_WITH_CHARSET); |