Commits

Anonymous committed a066e49

container_controls: reset index for every codename

Comments (0)

Files changed (1)

oox/source/xls/excelvbaproject.cxx

         }
 
         // create new codenames if sheets do not have one
-        sal_Int32 nCounter = 1;
         for( SheetCodeNameInfoList::iterator aIt = aCodeNameInfos.begin(), aEnd = aCodeNameInfos.end(); aIt != aEnd; ++aIt )
         {
             // search for an unused codename
+            sal_Int32 nCounter = 1;
             OUString aCodeName;
             do
             {