nemiver r949 - in trunk: . src/persp/dbgperspective
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r949 - in trunk: . src/persp/dbgperspective
- Date: Sun, 23 Nov 2008 17:02:17 +0000 (UTC)
Author: dodji
Date: Sun Nov 23 17:02:16 2008
New Revision: 949
URL: http://svn.gnome.org/viewvc/nemiver?rev=949&view=rev
Log:
Fix #562024 - cannot set breakpoint sometimes.
Modified:
trunk/ChangeLog
trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc (original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc Sun Nov 23 17:02:16 2008
@@ -5622,16 +5622,17 @@
// function name so that if the user hits enter, a breakpoint is set
// to that function by default.
- SourceEditor *source_editor = get_current_source_editor ();
- THROW_IF_FAIL (source_editor);
- Glib::RefPtr<gtksourceview::SourceBuffer> buffer =
- source_editor->source_view ().get_source_buffer ();
- THROW_IF_FAIL (buffer);
-
UString function_name;
- Gtk::TextIter start, end;
- if (buffer->get_selection_bounds (start, end)) {
- function_name = buffer->get_slice (start, end);
+ SourceEditor *source_editor = get_current_source_editor ();
+ if (source_editor) {
+ Glib::RefPtr<gtksourceview::SourceBuffer> buffer =
+ source_editor->source_view ().get_source_buffer ();
+ THROW_IF_FAIL (buffer);
+
+ Gtk::TextIter start, end;
+ if (buffer->get_selection_bounds (start, end)) {
+ function_name = buffer->get_slice (start, end);
+ }
}
if (!function_name.empty ()) {
// really the default function name to break into, by default.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]