aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r--src/displaywindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 020be60c..1ccd7866 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -1179,7 +1179,7 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
displaywindow_update(dw);
/* Peak list provided at startup? */
- if ( peaks != NULL ) {
+ if ( (dw->hdfile != NULL) && (peaks != NULL) ) {
load_features_from_file(dw->image, peaks);
displaywindow_update(dw);
}