diff src/toplev.cc @ 9484:bbe033dcfe13

make dbwhere work when called at keyboard prompt
author John W. Eaton <jwe@octave.org>
date Tue, 04 Aug 2009 15:32:14 -0400
parents 25c2e92ee03c
children af86991d8d47
line wrap: on
line diff
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -104,7 +104,7 @@
 int
 octave_call_stack::do_current_line (void) const
 {
-  tree_statement *stmt = do_top_statement ();
+  tree_statement *stmt = do_current_statement ();
 
   return stmt ? stmt->line () : -1;
 }
@@ -112,7 +112,7 @@
 int
 octave_call_stack::do_current_column (void) const
 {
-  tree_statement *stmt = do_top_statement ();
+  tree_statement *stmt = do_current_statement ();
 
   return stmt ? stmt->column () : -1;
 }