diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-05-06 04:54:45 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-05-06 04:54:45 -0700 |
commit | c353621be968fe28e9010d8ad9e2a8392ec143ae (patch) | |
tree | ff7b97cc8447397cff1f12e6f95d73a9d76e288f | |
parent | e447c2efb128823c93358c51a7d8f23636740f68 (diff) |
hdfsee: Don't attempt to load peaks if HDF5 file couldn't be opened
-rw-r--r-- | src/displaywindow.c | 2 |
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); } |