diff libinterp/parse-tree/pt-stmt.cc @ 16531:f3a63fdbd725

finish botched changeset 7ca7e7d5eb91
author John W. Eaton <jwe@octave.org>
date Wed, 17 Apr 2013 03:09:09 -0400 (2013-04-17)
parents 7ca7e7d5eb91
children de91b1621260
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-stmt.cc
+++ b/libinterp/parse-tree/pt-stmt.cc
@@ -202,7 +202,7 @@
 
   for (int i = 0; i < len; i++)
     {
-      const_intmap_iterator p = line.find (i);
+      bp_table::const_intmap_iterator p = line.find (i);
 
       if (p != line.end ())
         {
@@ -210,13 +210,8 @@
 
           retval[i] = set_breakpoint (lineno);
 
-          if (retval[i] != 0)
-            {
-              bp_set.insert (fname);
-
-              if (! file.empty ())
-                octave_link::update_breakpoint (true, file, retval[i]);
-            }
+          if (retval[i] != 0 && ! file.empty ())
+            octave_link::update_breakpoint (true, file, retval[i]);
         }
     }