[Libreoffice-commits] .: basctl/source

Eike Rathke erack at kemper.freedesktop.org
Wed Nov 30 04:34:00 PST 2011


 basctl/source/basicide/baside2.cxx  |    2 +-
 basctl/source/basicide/bastypes.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0083479a80de831b0ae90877aa4f5d6c4670eb49
Author: Niklas Johansson <sleeping.pillow at gmail.com>
Date:   Wed Nov 30 13:33:26 2011 +0100

    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.

diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index e963871..0f425cf 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -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...
     }
 
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index 008fa99..b1a6709 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -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 )


More information about the Libreoffice-commits mailing list