From d9e5d228638860b95285fa54456743b102a9f456 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Wed, 27 Mar 2013 00:09:18 -0430 Subject: Fix moving selected search results in Template Manager. Change-Id: I51ae74f91845255dc1f332e33c8e708e5af1ead0 Reviewed-on: https://gerrit.libreoffice.org/3079 Reviewed-by: Bosdonnat Cedric Tested-by: Bosdonnat Cedric --- sfx2/source/doc/templatedlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index 7e6525a1f720..2f86818530e9 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -1441,7 +1441,7 @@ void SfxTemplateManagerDlg::localSearchMoveTo(sal_uInt16 nMenuId) const TemplateSearchViewItem *pItem = static_cast(*aIter); - if(!maView->moveTemplate(pItem,pItem->mnRegionId+1,nItemId)) + if(!maView->moveTemplate(pItem,pItem->mnRegionId,nItemId)) { if (aTemplateList.isEmpty()) aTemplateList = (*aIter)->maTitle; -- cgit