diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-29 21:50:02 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2012-07-29 23:34:31 -0430 |
commit | 3011ec0b11c3788cc208b0c54ccd1174790ee1fa (patch) | |
tree | 56f3a7d02c3d7664ac975b64812e41dd930f0397 /sfx2 | |
parent | 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 (diff) |
Fix setting corret id for an imported template.
Change-Id: I7f87901732d50a0bec9138d3feaf795d76a16e2a
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/templatefolderview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/templatefolderview.cxx b/sfx2/source/control/templatefolderview.cxx index 31d7888aa3e5..9a27db644397 100644 --- a/sfx2/source/control/templatefolderview.cxx +++ b/sfx2/source/control/templatefolderview.cxx @@ -601,7 +601,7 @@ void TemplateFolderView::copyFrom (TemplateFolderViewItem *pItem, const rtl::OUS if (mpDocTemplates->CopyFrom(nRegionId,nId,aPath)) { TemplateItemProperties aTemplate; - aTemplate.nId = nId; + aTemplate.nId = nId+1; aTemplate.nRegionId = nRegionId; aTemplate.aName = mpDocTemplates->GetName(nRegionId,nId); aTemplate.aThumbnail = TemplateAbstractView::fetchThumbnail(rPath,128,128); |