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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1533
Date       : Tue Jul 25 17:29:52 BST 2006

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

Save gallery sizes (nasty workaround - still trying to find out the underlying issue)


Diff:
Index: Trunk/XaraLX/wxOil/dlgmgr.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1532)
+++ Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1533)
@@ -873,6 +873,12 @@
 
 void DialogManager::SavePaneInfo(wxString key, wxPaneInfo &paneinfo)
 {
+	// work around mysterious wxGTK sizing bug
+	if ((paneinfo.floating_size == wxDefaultSize) && (paneinfo.IsOk()) && (paneinfo.IsFloating()))
+	{
+		paneinfo.FloatingSize(paneinfo.window->GetParent()->GetSize());
+	}
+
 	if (!s_pPaneInfoHash)
 		InitPaneInfoHash();
 


Xara