diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-10 10:36:09 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-11 19:24:20 -0430 |
commit | 9b991a1764317959edff5af3fa7261b65dcdc18c (patch) | |
tree | 6a1f97627a1cfde2bb9aefda856985b0e24afafe /sfx2 | |
parent | d2b272c19d684f993da09c8961870db78e93b8c2 (diff) |
Remove thumbnail from local view if we erase it throught the search view.
Change-Id: I42e5fe1f806712b2b912f945c164b0e239ecaa54
Diffstat (limited to 'sfx2')
-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 5defbbf46ffd..945e25677b59 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) |