[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1674
Date       : Sun Aug  6 21:12:59 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/dlgmgr.cpp

Attempt to fix unrepeatable bug 1393 (floating panes not created on top)


Diff:
Index: Trunk/XaraLX/wxOil/dlgmgr.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1673)
+++ Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1674)
@@ -519,6 +519,15 @@
 		CCamFrame::GetFrameManager()->AddPane(pDialogWnd, paneinfo);
 
 		CCamFrame::GetMainFrame()->UpdateFrameManager();
+
+		// Make sure newly created floating panes are at the top in an attempt to fix
+		// Bugzilla bug 1393 (can't duplicate here...)
+		wxWindow * pTLW = pDialogWnd;
+		while (pTLW->GetParent())
+			pTLW=pTLW->GetParent();
+		if (pTLW->IsKindOf(CLASSINFO(wxFloatingPane)))
+			pTLW->Raise();
+
 	}
 #endif
 


Xara