[PATCH] Fixes pass count in Manage Breakpoints

Niklas Johansson sleeping.pillow at gmail.com
Tue Nov 29 00:32:14 PST 2011


When entering pass count 2 it is expected that the breakpoint is
passed two times before breaking not to break the second time.
---
 basctl/source/basicide/baside2.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index fb6ed3a..b826300 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -724,7 +724,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...
     }
 
-- 
1.7.5.4


--------------060901070601050300020502--


More information about the LibreOffice mailing list