diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2014-01-16 22:25:56 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2014-01-16 22:25:56 +0100 |
commit | 9684609e601470f259e1fab135ac023a9ba92d0f (patch) | |
tree | 43ac65bc598ec5ff57cf1f1fbcbaf594a6840ca2 /src | |
parent | e28285699b660fd6609edfbaa2f1ced5a48b8afd (diff) |
add null check
Diffstat (limited to 'src')
-rw-r--r-- | src/GipfelWidget.cxx | 4 |
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(); |