diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-10 10:36:09 -0430 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-15 07:24:06 +0000 |
commit | 94cb2604ea75a504ecab5f500701099e00859b7c (patch) | |
tree | 8469322ae608d5f35fcec6ea72ef6ccb1d5e4fe3 | |
parent | Set Template Manager dialog minimum size. (diff) | |
download | core-94cb2604ea75a504ecab5f500701099e00859b7c.tar.gz core-94cb2604ea75a504ecab5f500701099e00859b7c.zip |
Remove thumbnail from local view if we erase it throught the search view.
Change-Id: I3ec486313bedcc633b020a2feea3d30730da98f0
Reviewed-on: https://gerrit.libreoffice.org/3354
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 884897cf7bb1..f1a34217f0fb 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -352,7 +352,11 @@ bool TemplateLocalView::removeTemplate (const sal_uInt16 nItemId, const sal_uInt pIter = pItem->maTemplates.erase(pIter); - RemoveItem(nItemId); + if (maRegions[i]->mnRegionId == mnCurRegionId-1) + { + RemoveItem(nItemId); + Invalidate(); + } // Update Doc Idx for all templates that follow for (; pIter != pItem->maTemplates.end(); ++pIter) |