[PATCH] Fixes BreakPointManager

Niklas Johansson sleeping.pillow at gmail.com
Mon Nov 28 02:40:30 PST 2011


Earlier when pressing ok in the breakpoint manager the breakpoints
wasn't getting stored. The pointer address was stored but the
breakpoint object was destroyed, leaving you with random values.
---
 basctl/source/basicide/bastypes.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index 10310ec..058e6ba 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -288,7 +288,7 @@ void BreakPointList::transfer(BreakPointList & rList)
 {
     reset();
     for (size_t i = 0; i < rList.size(); ++i)
-        maBreakPoints.push_back( rList.at( i ) );
+        maBreakPoints.push_back( new BreakPoint(*rList.at( i )) );
     rList.reset();
 }
 
-- 
1.7.5.4


--------------000305020608010709060404--


More information about the LibreOffice mailing list