diff options
author | Thomas White <taw@physics.org> | 2021-01-27 17:57:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-01-27 17:57:10 +0100 |
commit | 02b66ee67121f2814c00e3d849c8c2648d85242b (patch) | |
tree | 6be94c8745c3d7f42d3166cdd5d0535822093749 /src | |
parent | 6e8909bab274250bc9c4cedc83ea459b6e432beb (diff) |
GUI: Avoid warning when there are no results in the project file
Diffstat (limited to 'src')
-rw-r--r-- | src/gui_project.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index 3eb2293d..3e8eb970 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -641,9 +641,11 @@ static void read_results(FILE *fh, struct crystfelproject *proj) } if ( strcmp(line, "-----") == 0 ) { - add_result(proj, results_name, - streams, n_streams, selected, - hkl); + if ( !first ) { + add_result(proj, results_name, + streams, n_streams, selected, + hkl); + } break; } |