Kaydet (Commit) 52e56c3c authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Björn Michaelsen

coverity#705115 Using invalid iterator

Change-Id: Ia8b5a0654ded07d939e8be93a2dea2a6f84165b3
Reviewed-on: https://gerrit.libreoffice.org/2785Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@canonical.com>
üst 7014a569
......@@ -905,14 +905,11 @@ void SwCustomizeAddressBlockDialog::MoveFocus( Window* pMember, bool bNext )
else
{
::std::vector< Window* >::iterator aSearch = aMemberIter;
if(aSearch == aControls.begin())
aSearch = aControls.end();
while( true )
{
if(aSearch == aControls.begin())
aSearch = aControls.end();
else
--aSearch;
--aSearch;
if( (*aSearch)->IsEnabled() )
{
(*aSearch)->GrabFocus();
......
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