Add null check for child window in callback
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled

Fixes issue #1401
This commit is contained in:
BlueCannonBall
2026-04-05 16:38:07 -04:00
committed by ManoloFLTK
parent 12f90c87d6
commit 49f3aaf4a1
+1
View File
@@ -1227,6 +1227,7 @@ static void invalidate_gl_win(Fl_Window *glwin) {
static BOOL CALLBACK child_window_cb(HWND child_xid, LPARAM data) {
Fl_Window *child = fl_find(child_xid);
if (!child) return TRUE;
if (data) {
float s = *(float*)data;
SetWindowPos(child_xid, 0, int(round(child->x() * s)), int(round(child->y() * s)),