diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-07 21:16:55 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-09 10:40:06 -0430 |
commit | d14e60248e56e5811fca3828b527a2ef2180bf98 (patch) | |
tree | 4d608eb5cc637e1716e78b2337f0bcd3e56bbe43 | |
parent | Mark thumbnailview item as unselected when updating filter. (diff) | |
download | core-d14e60248e56e5811fca3828b527a2ef2180bf98.tar.gz core-d14e60248e56e5811fca3828b527a2ef2180bf98.zip |
Update template item path when moving it to another folder.
Change-Id: I0ea9bf77b2393240e5074000a3692a4eaac11cf0
-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 28b51cd79c53..b07359e3fc4a 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -398,7 +398,7 @@ bool TemplateLocalView::moveTemplate (const ThumbnailViewItem *pItem, const sal_ aTemplateItem.nDocId = nTargetIdx; aTemplateItem.nRegionId = nTargetRegion; aTemplateItem.aName = pViewItem->maTitle; - aTemplateItem.aPath = pViewItem->getPath(); + aTemplateItem.aPath = mpDocTemplates->GetPath(nTargetRegion,nTargetIdx); aTemplateItem.aThumbnail = pViewItem->maPreview1; pTarget->maTemplates.push_back(aTemplateItem); @@ -495,7 +495,7 @@ bool TemplateLocalView::moveTemplates(const std::set<const ThumbnailViewItem*, s aTemplateItem.nDocId = nTargetIdx; aTemplateItem.nRegionId = nTargetRegion; aTemplateItem.aName = pViewItem->maTitle; - aTemplateItem.aPath = pViewItem->getPath(); + aTemplateItem.aPath = mpDocTemplates->GetPath(nTargetRegion,nTargetIdx); aTemplateItem.aThumbnail = pViewItem->maPreview1; pTarget->maTemplates.push_back(aTemplateItem); |