aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r--src/displaywindow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 1abcec41..0af864fc 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -1396,7 +1396,8 @@ static gint displaywindow_press(GtkWidget *widget, GdkEventButton *event,
DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
int boost, int binning, int cmfilter,
int noisefilter, int colscale,
- const char *element, const char *geometry)
+ const char *element, const char *geometry,
+ int show_rings)
{
DisplayWindow *dw;
char *title;
@@ -1415,7 +1416,7 @@ DisplayWindow *displaywindow_open(const char *filename, const char *peaks,
dw->numbers_window = NULL;
dw->image = NULL;
dw->use_geom = 0;
- dw->show_rings = 0;
+ dw->show_rings = show_rings;
dw->scale = colscale;
dw->binning = binning;
dw->boostint = boost;