diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-05 18:09:03 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-05 18:09:35 +0100 |
commit | 57ed5702fda24dce9da13bafbd4b3f385bf9c5d5 (patch) | |
tree | f6f057f89600f304ea998cf0c626ec50b0398e91 /sfx2 | |
parent | Template Manager: put all the ToolBoxes in a Control to ease painting changes (diff) | |
download | core-57ed5702fda24dce9da13bafbd4b3f385bf9c5d5.tar.gz core-57ed5702fda24dce9da13bafbd4b3f385bf9c5d5.zip |
Template manager: pickup non-empty thumbnails for folders
Change-Id: Idcb2987dc98ea9d00c8b160902446e71e8d6daff
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 26d9f3c3f99a..582e508406cd 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -748,9 +748,9 @@ static void lcl_updateThumbnails (TemplateLocalViewItem *pItem) pItem->maPreview2.Clear(); // Update folder thumbnails - for (size_t i = 0, n = pItem->maTemplates.size(); i < 2 && i < n; ++i) + for (size_t i = 0, n = pItem->maTemplates.size(); i < n && ( pItem->maPreview1.IsEmpty() || pItem->maPreview2.IsEmpty( ) ); ++i) { - if (i == 0) + if ( pItem->maPreview1.IsEmpty( ) ) { pItem->maPreview1 = TemplateAbstractView::scaleImg(pItem->maTemplates[i].aThumbnail, TEMPLATE_THUMBNAIL_MAX_WIDTH*0.75, |