changeset 1645:69386c5a8e3e

Fixed render widgets being incorrectly identified as boxes on OS/2 in the layout engine due to them internally being the same class.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 06 Apr 2012 23:34:00 +0000
parents 2b55465887e1
children 8493f8888893
files os2/dw.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }