From e984f23b5f1a84644888d3a15f0b4e0187063080 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sun, 3 Jul 2022 16:09:48 -0700 Subject: [PATCH] Line: Never say "360 degrees" (say "0") h/t Karl Closes https://sourceforge.net/p/tuxpaint/bugs/255/ --- docs/CHANGES.txt | 6 +++++- src/tuxpaint.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 3beba7a4e..dc604338d 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -7,7 +7,7 @@ Various contributors (see below, and AUTHORS.txt) http://www.tuxpaint.org/ -2022.July.03 (0.9.29) +2022.July.3 (0.9.29) * Bug Fixes: ---------- * Opening and immediately dismissing Color Mixer could cause @@ -15,6 +15,10 @@ http://www.tuxpaint.org/ h/t @kentonyanamin on Twitter for reporting. Closes https://sourceforge.net/p/tuxpaint/bugs/251/ + * Line shape could report "360 degrees", which should be "0 degrees". + h/t Karl Ove Hufthammer for the report + Closes https://sourceforge.net/p/tuxpaint/bugs/255/ + * Other Improvements: ------------------- * Automatic button size option ("buttonsize=auto"), to scale button diff --git a/src/tuxpaint.c b/src/tuxpaint.c index a7948c7da..1057f512b 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - June 14, 2022 + June 14, 2002 - July 3, 2022 */ #include "platform.h" @@ -5982,7 +5982,7 @@ static void mainloop(void) line_start_y + r_canvas.y, new_x + r_canvas.x, new_y + r_canvas.y); update_screen(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT); - snprintf(angle_tool_text, sizeof(angle_tool_text), gettext(TIP_LINE_MOVING), angle); + snprintf(angle_tool_text, sizeof(angle_tool_text), gettext(TIP_LINE_MOVING), floor(angle)); draw_tux_text(TUX_BORED, angle_tool_text, 1); } else if (cur_tool == TOOL_SHAPES)