# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1333755240 0 # Node ID 69386c5a8e3efff978e177cb15a02d511b9211ab # Parent 2b55465887e11cd28841dfd687793dc64152994b Fixed render widgets being incorrectly identified as boxes on OS/2 in the layout engine due to them internally being the same class. diff -r 2b55465887e1 -r 69386c5a8e3e os2/dw.c --- a/os2/dw.c Fri Apr 06 22:15:06 2012 +0000 +++ b/os2/dw.c Fri Apr 06 23:34:00 2012 +0000 @@ -7117,7 +7117,7 @@ if(hsize && !width) width = 1; - if(strncmp(tmpbuf, "#1", 3)==0) + if(strncmp(tmpbuf, "#1", 3)==0 && !dw_window_get_data(item, "_dw_render")) tmpitem[index].type = TYPEBOX; else { @@ -9429,6 +9429,7 @@ NULL, NULL); WinSubclassWindow(hwndframe, _RendProc); + dw_window_set_data(hwndframe, "_dw_render", DW_INT_TO_POINTER(1)); return hwndframe; }