[SCM] OCE packaging branch, debian, updated. debian/0.11-1

QbProg tholag at gmail.com
Thu Dec 13 19:16:46 UTC 2012


The following commit has been merged in the debian branch:
commit 9f487ab64d1b5fef14633a06640b68134c110aa3
Author: QbProg <tholag at gmail.com>
Date:   Wed May 16 21:06:28 2012 +0200

    Fixed a bug caused by missing branches.
    The second instruction was executed even if the handle was NULL.
    Not really important since the SendMessage function would fail in that case.

diff --git a/src/Draw/MainWindow.cxx b/src/Draw/MainWindow.cxx
index 3c0f012..d555195 100644
--- a/src/Draw/MainWindow.cxx
+++ b/src/Draw/MainWindow.cxx
@@ -104,8 +104,10 @@ BOOL CommandProc(HWND hWndFrame, WPARAM wParam, LPARAM lParam)
 	{
 	  case IDM_WINDOW_NEXT :
 					if((hWndClient = (HWND)GetWindowLong(hWndFrame, CLIENTWND)) != NULL)
-					  hWndActive = (HWND)SendMessage(hWndClient, WM_MDIGETACTIVE, 0, 0l);
+					{
+						hWndActive = (HWND)SendMessage(hWndClient, WM_MDIGETACTIVE, 0, 0l);
 						SendMessage(hWndClient, WM_MDINEXT, (WPARAM)hWndActive, 0l);  
+					}
 					break;
 
 		case IDM_WINDOW_CASCADE :

-- 
OCE packaging



More information about the debian-science-commits mailing list