# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1349759129 0 # Node ID 6ae40234d5316efa0f6656c184b505f07f4ff57a # Parent b301d86a26831e198738d5dd3d0a2af934bc2454 Fixed the order being wrong for traversing splitbars backwards on OS/2. diff -r b301d86a2683 -r 6ae40234d531 os2/dw.c --- a/os2/dw.c Tue Oct 09 04:57:52 2012 +0000 +++ b/os2/dw.c Tue Oct 09 05:05:29 2012 +0000 @@ -731,7 +731,7 @@ if(strncmp(tmpbuf, SplitbarClassName, strlen(SplitbarClassName)+1)==0) { /* Then try the bottom or right box */ - HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_bottomright"); + HWND mybox = (HWND)dw_window_get_data(box->items[z].hwnd, (direction == _DW_DIRECTION_FORWARD) ? "_dw_bottomright" : "_dw_topleft"); if(mybox) { @@ -742,7 +742,7 @@ } /* Try the top or left box */ - mybox = (HWND)dw_window_get_data(box->items[z].hwnd, "_dw_topleft"); + mybox = (HWND)dw_window_get_data(box->items[z].hwnd, (direction == _DW_DIRECTION_FORWARD) ? "_dw_topleft" : "_dw_bottomright"); if(mybox) {