coverity#1312086 Out-of-bounds read

Change-Id: I7885f8ba5ec4c6e60d88f6caab0c25cb760529ef
This commit is contained in:
Caolán McNamara
2015-07-21 15:07:13 +01:00
parent 5c938857c4
commit dda78fb69c

View File

@@ -89,7 +89,7 @@ class FileViewContainer : public vcl::Window
if( !m_pFileView || !m_pTreeView )
return;
if( !bReverse && m_nCurrentFocus < 4 )
if( !bReverse && m_nCurrentFocus < 3 )
{
m_pFocusWidgets[++m_nCurrentFocus]->SetFakeFocus( true );
m_pFocusWidgets[m_nCurrentFocus]->GrabFocus();