From 56f0671b3201e501745c11556b9c96081194777d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 19 Jul 2024 13:47:08 +0200 Subject: Fix border case of use of fl_end_loop under Windows with USE_GDIPLUS=1 --- src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx index 441bddd70..e469bb11b 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx @@ -141,7 +141,7 @@ void Fl_GDIplus_Graphics_Driver::end_line() { void Fl_GDIplus_Graphics_Driver::end_loop() { if (!active) return Fl_GDI_Graphics_Driver::end_loop(); fixloop(); - if (n>2) { + if (n >= 2) { Gdiplus::GraphicsPath path; Gdiplus::Point *gdi2_p = new Gdiplus::Point[n]; for (int i = 0; i < n; i++) { -- cgit v1.2.3