aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;