summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r--src/GipfelWidget.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 31162ef..9fc56d6 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -620,7 +620,9 @@ GipfelWidget::handle(int event) {
{"Find Peak", 0, find_peak_cb, this},
{0}
};
- const Fl_Menu_Item *mi = rclick_menu->popup(Fl::event_x(), Fl::event_y(), 0, 0, 0);
+ const Fl_Menu_Item *mi =
+ rclick_menu->popup(Fl::event_x(), Fl::event_y(), 0, 0, 0);
+
if (mi)
mi->do_callback(0, mi->user_data());
}