[Libreoffice-commits] core.git: sfx2/source

Rafael Dominguez venccsralph at gmail.com
Wed Mar 27 08:01:02 PDT 2013


 sfx2/source/doc/templatedlg.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d9e5d228638860b95285fa54456743b102a9f456
Author: Rafael Dominguez <venccsralph at gmail.com>
Date:   Wed Mar 27 00:09:18 2013 -0430

    Fix moving selected search results in Template Manager.
    
    Change-Id: I51ae74f91845255dc1f332e33c8e708e5af1ead0
    Reviewed-on: https://gerrit.libreoffice.org/3079
    Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
    Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>

diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 7e6525a..2f86818 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<const TemplateSearchViewItem*>(*aIter);
 
-            if(!maView->moveTemplate(pItem,pItem->mnRegionId+1,nItemId))
+            if(!maView->moveTemplate(pItem,pItem->mnRegionId,nItemId))
             {
                 if (aTemplateList.isEmpty())
                     aTemplateList = (*aIter)->maTitle;


More information about the Libreoffice-commits mailing list