From 15bef20d72eec275a238084994634a5cc262a354 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Sun, 7 Apr 2013 21:16:55 -0430 Subject: Update template item path when moving it to another folder. Change-Id: I4de701e32dfe1244ba29704633d7d15f829a9e7a Reviewed-on: https://gerrit.libreoffice.org/3298 Reviewed-by: Miklos Vajna Tested-by: Miklos Vajna --- sfx2/source/control/templatelocalview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 6dd82df22dcd..a4437c3d7a43 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::setmaTitle; - aTemplateItem.aPath = pViewItem->getPath(); + aTemplateItem.aPath = mpDocTemplates->GetPath(nTargetRegion,nTargetIdx); aTemplateItem.aThumbnail = pViewItem->maPreview1; pTarget->maTemplates.push_back(aTemplateItem); -- cgit