Kaydet (Commit) 661f7bde authored tarafından Stephan Bergmann's avatar Stephan Bergmann

m_bHasActive must be false after last visible entry is removed

...otherwise, ExtensionBox_Impl::RecalcAll would crash in CalcActiveHeight(-1).

Change-Id: If399825951c79b821ed44ebefa19d1032ab4f850
üst 6d42e7a3
......@@ -1224,7 +1224,13 @@ void ExtensionBox_Impl::checkEntries()
if ( nPos < m_nActive )
m_nActive -= 1;
else if ( ( nPos == m_nActive ) && ( nPos == (long) m_vEntries.size() - 1 ) )
{
m_nActive -= 1;
if (m_nActive == -1)
{
m_bHasActive = false;
}
}
m_vRemovedEntries.push_back( *iIndex );
m_vEntries.erase( iIndex );
iIndex = m_vEntries.begin() + nPos;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment