summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-01-16 22:25:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-01-16 22:25:56 +0100
commit9684609e601470f259e1fab135ac023a9ba92d0f (patch)
tree43ac65bc598ec5ff57cf1f1fbcbaf594a6840ca2 /src
parente28285699b660fd6609edfbaa2f1ced5a48b8afd (diff)
add null check
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 7cf3377..30172a1 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -343,6 +343,10 @@ void
GipfelWidget::set_labels(Hills *v) {
int height;
+ if (!img)
+ return;
+
+
fl_font(FL_HELVETICA, 8);
height = fl_height();