out-of-bounds arg mapping access, this was always wrong but never hit it seems

Change-Id: I15843b320ac8ddcefce8094da7aa7c6b81b42e4f
This commit is contained in:
Eike Rathke
2015-12-17 15:41:31 +01:00
parent a7d0c00d73
commit 5b404cc2ad

View File

@@ -122,7 +122,7 @@ void ParaWin::UpdateArgDesc( sal_uInt16 nArg )
if ( nArgs < VAR_ARGS )
{
sal_uInt16 nRealArg = (aVisibleArgMapping.size() < nArg) ? aVisibleArgMapping[nArg] : nArg;
sal_uInt16 nRealArg = (nArg < aVisibleArgMapping.size()) ? aVisibleArgMapping[nArg] : nArg;
aArgDesc = pFuncDesc->getParameterDescription(nRealArg);
aArgName = pFuncDesc->getParameterName(nRealArg);
aArgName += " ";