diff options
author | Eike Rathke <erack@redhat.com> | 2015-12-17 15:41:31 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-12-17 15:44:34 +0100 |
commit | 5b404cc2adcea04938c8159c0bc84a8cd44ec5df (patch) | |
tree | 9907fb365a90f0c2c4a6b81398f75d3ec77c8212 /formula/source | |
parent | a7d0c00d7307d11d1a3019f5defa9225a07c2d2a (diff) |
out-of-bounds arg mapping access, this was always wrong but never hit it seems
Change-Id: I15843b320ac8ddcefce8094da7aa7c6b81b42e4f
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index ee094724321b..3c83b0a603d6 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -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 += " "; |