diff options
author | David Robillard <d@drobilla.net> | 2007-06-07 02:07:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-07 02:07:49 +0000 |
commit | 9091ba932d9f440c73b35f02b3f0a89c12f92185 (patch) | |
tree | e8e60689cfa2e7a0cef10b53269ca4fee48664a6 /libs/gtkmm2ext/gtk_ui.cc | |
parent | ca40990444b09d1de532c572793ab702840714f7 (diff) |
Fixed MIDI crash bug.
Added some asserts to gtkmm2ext that hopefully may catch a bug I might have possibly seen once or twice, probably.
Fixed uninitialized value in time_axis_view.cc.
git-svn-id: svn://localhost/ardour2/trunk@1958 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtk_ui.cc')
-rw-r--r-- | libs/gtkmm2ext/gtk_ui.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/gtk_ui.cc b/libs/gtkmm2ext/gtk_ui.cc index ee9d39c918..174d645d17 100644 --- a/libs/gtkmm2ext/gtk_ui.cc +++ b/libs/gtkmm2ext/gtk_ui.cc @@ -19,6 +19,7 @@ */ #include <cmath> +#include <cassert> #include <fcntl.h> #include <signal.h> #include <unistd.h> @@ -429,6 +430,9 @@ UI::toggle_errors () void UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg) { + assert(ptag); + assert(mtag); + RefPtr<TextBuffer> buffer (errors->text().get_buffer()); buffer->insert_with_tag(buffer->end(), prefix, ptag); |