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

Tamás Zolnai tamas.zolnai at collabora.com
Sun Sep 18 17:46:20 UTC 2016


 sc/source/ui/unoobj/dapiuno.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c8d0afbfd0b68e1c8227fe35029287b874bac654
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Mon Sep 19 03:47:10 2016 +0200

    Use localized name for pivot groups created via API
    
    Same string used in ScDBFunc::GroupDataPilot() method.
    
    Change-Id: I5b4d1b32af039caee76121fc534418a05a0882e0

diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 94b01ec..6797982 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -39,6 +39,7 @@
 #include "dpdimsave.hxx"
 #include "hints.hxx"
 #include <dputil.hxx>
+#include "globstr.hrc"
 
 #include <com/sun/star/sheet/XHierarchiesSupplier.hpp>
 #include <com/sun/star/sheet/XLevelsSupplier.hpp>
@@ -2612,8 +2613,7 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( cons
         }
         OUString aGroupDimName = pGroupDimension->GetGroupDimName();
 
-        //! localized prefix string
-        OUString aGroupName = pGroupDimension->CreateGroupName( "Group" );
+        OUString aGroupName = pGroupDimension->CreateGroupName( ScGlobal::GetRscString(STR_PIVOT_GROUP) );
         ScDPSaveGroupItem aGroup( aGroupName );
         Reference< XMembersAccess > xMembers = GetMembers();
         if (!xMembers.is())


More information about the Libreoffice-commits mailing list