Kaydet (Commit) 0083479a authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Eike Rathke

Fixed fdo#42778 pass count in Manage Breakpoints and crash in dialog

When entering pass count 2 it is expected that the breakpoint is
passed two times before breaking not to break the second time.

Also fixed a crash due to dangling pointers of breakpoints.
üst c593018f
......@@ -722,7 +722,7 @@ long ModulWindow::BasicBreakHdl( StarBASIC* pBasic )
if ( pBrk )
{
pBrk->nHitCount++;
if ( pBrk->nHitCount < pBrk->nStopAfter && GetBasic()->IsBreak() )
if ( pBrk->nHitCount <= pBrk->nStopAfter && GetBasic()->IsBreak() )
return aStatus.nBasicFlags; // go on...
}
......
......@@ -287,7 +287,7 @@ void BreakPointList::transfer(BreakPointList & rList)
reset();
for (size_t i = 0; i < rList.size(); ++i)
maBreakPoints.push_back( rList.at( i ) );
rList.reset();
rList.clear();
}
void BreakPointList::InsertSorted( BreakPoint* pNewBrk )
......
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