diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-10 15:06:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-10 15:17:33 +0200 |
commit | 97d4c1a8100c63091401736c93d6bbbb371d5b37 (patch) | |
tree | 00b0ef8c17a6402d50134c7da75839bac1b1de21 /scripting/Jar_ScriptProviderForBeanShell.mk | |
parent | 4d000e85633c8e97e73bfc68a128dd7bea31223f (diff) |
rhbz#1197614: Fix calculation of m_bHasActive when removing active element
Assume m_vEntries.size() == 2; assume first element (nPos == 0) is m_bActive,
gets removed, so m_nActive would have stayed at 0 and m_bHasActive at true; then
assume second element (again nPos == 0, due to the removed element) is m_bNew,
so nPos <= m_nActive is true and m_nActive gets updated to 1 (and m_bHasActive
remains true); then selectEntry(nNewPos) (nNewPos == 0) would have tried to
reset m_vEntries[1]->m_bActive but now m_vEntries.size() == 1.
Change-Id: I31d3bbe97ca99f880aa99bdea015f7c0457f8331
Diffstat (limited to 'scripting/Jar_ScriptProviderForBeanShell.mk')
0 files changed, 0 insertions, 0 deletions