aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-03-01 13:51:19 +0100
committerThomas White <taw@physics.org>2017-03-03 11:45:57 +0100
commit81bbf308d43c5f74ce1e550eba1652a47b6d2841 (patch)
tree2529cb8cefd142b86ccbb7ce53393d759e23fcbf /src/geoptimiser.c
parent5280b7ae4c3439a9dfea9ef2af6ceeb2da0cb829 (diff)
geoptimiser: Call g_type_init() only if GLib is old
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index e0337358..4ba2c5d0 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -2488,8 +2488,10 @@ int main(int argc, char *argv[])
}
#ifdef HAVE_SAVE_TO_PNG
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init();
#endif
+#endif
ret_val = optimize_geometry(gparams, det, quadrants, connected);