aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-05-06 04:54:45 -0700
committerThomas White <taw@bitwiz.org.uk>2010-05-06 04:54:45 -0700
commitc353621be968fe28e9010d8ad9e2a8392ec143ae (patch)
treeff7b97cc8447397cff1f12e6f95d73a9d76e288f
parente447c2efb128823c93358c51a7d8f23636740f68 (diff)
hdfsee: Don't attempt to load peaks if HDF5 file couldn't be opened
-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);
}