Apache OpenOffice (AOO) Bugzilla – Attachment #79708: Patch to fix this problem, increment n in the while loop for issue #118909
ModuleToCommandFileMap::const_iterator pIter = m_aModuleToCommandFileMap.begin();
while ( pIter != m_aModuleToCommandFileMap.end() )
{
aSeq[n] = pIter->first;
aSeq[n++] = pIter->first;
++pIter;
}