Fix border case of use of fl_end_loop under Windows with USE_GDIPLUS=1

This commit is contained in:
ManoloFLTK 2024-07-19 13:47:08 +02:00
parent 49a161e68d
commit 56f0671b32
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {