aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-05-12 12:04:53 +0200
committerThomas White <taw@physics.org>2016-05-12 12:04:53 +0200
commit56a0a242fad06ecb8714e3c6eaa8817fb2680663 (patch)
tree4361a21551739593c4a0b2dc9f227d170f0e41dc /src/geoptimiser.c
parentcb340affca2c452ca75e6e261175841cc33c7f77 (diff)
geoptimiser: Only do g_type_init() if HAVE_SAVE_TO_PNG
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index 2fc12bae..485e5e12 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -3213,7 +3213,10 @@ int main(int argc, char *argv[])
strcat(command_line, buffer);
}
+#ifdef HAVE_SAVE_TO_PNG
g_type_init();
+#endif
+
ret_val = optimize_geometry(gparams, det, quadrants, connected);
return ret_val;