From 468c5f86704b19826bf9bb2a0fcb6adc01399fdf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 1 Jul 2023 20:55:13 -0400 Subject: [PATCH] path tool: Report convexity We have the info, might as well. --- tools/gtk-path-tool-info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gtk-path-tool-info.c b/tools/gtk-path-tool-info.c index 7e8fafe310..9d18f52de7 100644 --- a/tools/gtk-path-tool-info.c +++ b/tools/gtk-path-tool-info.c @@ -70,6 +70,9 @@ do_info (int *argc, const char ***argv) if (gsk_path_measure_is_closed (measure)) g_print ("%s\n", _("Path is closed")); + if (gsk_path_is_convex (path)) + g_print ("%s\n", _("Path is convex")); + g_print ("%s %g\n", _("Path length"), gsk_path_measure_get_length (measure)); if (gsk_path_get_bounds (path, &bounds))