From f442095dca5a0bafd245d3bc47461dd8dc634005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Wed, 15 Jul 2026 06:56:12 +0200 Subject: [PATCH 1/4] Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- display/d.linegraph/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/d.linegraph/main.c b/display/d.linegraph/main.c index 0a7d2fa48ab..967e92d2c6f 100644 --- a/display/d.linegraph/main.c +++ b/display/d.linegraph/main.c @@ -982,7 +982,7 @@ int main(int argc, char **argv) /* draw a tic-mark number */ if (scale_y_labels) - snprintf(txt, sizeof(txt), "%f.0", + snprintf(txt, sizeof(txt), "%.0f", (i / tic_unit * y_scale)); else snprintf(txt, sizeof(txt), "%d", (i / tic_unit)); From 4f6bff8a251f69e54a5fee747a8ef9ca125f049c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Wed, 15 Jul 2026 06:56:12 +0200 Subject: [PATCH 2/4] Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- display/d.linegraph/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/d.linegraph/main.c b/display/d.linegraph/main.c index 967e92d2c6f..cbe27191d2e 100644 --- a/display/d.linegraph/main.c +++ b/display/d.linegraph/main.c @@ -595,7 +595,7 @@ int main(int argc, char **argv) } } else if (num_y_files != i) - G_fatal_error(_("Number of widths (%d) is lower then" + G_fatal_error(_("Number of widths (%d) is lower than" " the number of files (%d)"), i, num_y_files); } From 226d10905a66b014fa38314fbcc5eb46535543df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Wed, 15 Jul 2026 06:56:13 +0200 Subject: [PATCH 3/4] Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- display/d.linegraph/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/d.linegraph/main.c b/display/d.linegraph/main.c index cbe27191d2e..aaa76fdde0c 100644 --- a/display/d.linegraph/main.c +++ b/display/d.linegraph/main.c @@ -501,7 +501,7 @@ int main(int argc, char **argv) &rgb_b); if (ret == 0) - G_fatal_error(_("Color <%s> cannot for option %s be parsed"), + G_fatal_error(_("Color <%s> for option <%s> cannot be parsed"), point_color2_opt->answer, point_color2_opt->key); else if (ret == 2) secondary_color.a = RGBA_COLOR_TRANSPARENT; From 3f8a3563f7d94d11a9b6269a3a0be71fe520eba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Wed, 15 Jul 2026 06:56:14 +0200 Subject: [PATCH 4/4] Apply suggested fix to display/d.linegraph/main.c from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- display/d.linegraph/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/d.linegraph/main.c b/display/d.linegraph/main.c index aaa76fdde0c..35fccef914f 100644 --- a/display/d.linegraph/main.c +++ b/display/d.linegraph/main.c @@ -62,7 +62,7 @@ static void set_optimal_text_size(double text_width, double text_height, { D_text_size(text_width, text_height); D_get_text_box(text, tt, tb, tl, tr); - while ((tt - tb) > YTIC_DIST) { + while ((*tt - *tb) > YTIC_DIST) { text_width *= 0.75; text_height *= 0.75; D_text_size(text_width, text_height);