aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-02-29 20:58:59 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commite6cc22eea8c30cd3917b17f97255725dabaf4d20 (patch)
treebdbc6947a3d301af0242af5d160286d3bef9863d /src
parent8569db76ad97d3f1f6bb9e7094b0338723753966 (diff)
Set non-NAN initial values
Diffstat (limited to 'src')
-rw-r--r--src/crystfelimageview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index 34316c23..be14c159 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -367,9 +367,9 @@ GtkWidget *crystfel_image_view_new()
iv = g_object_new(CRYSTFEL_TYPE_IMAGE_VIEW, NULL);
/* All values initially meaningless */
- iv->detector_w = NAN;
- iv->detector_h = NAN;
- iv->zoom = NAN;
+ iv->detector_w = 1.0;
+ iv->detector_h = 1.0;
+ iv->zoom = 1.0;
iv->filename = NULL;
iv->event = NULL;