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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1350
Date       : Thu Jun 22 14:20:48 BST 2006

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

Luke's fix to sizer creation


Diff:
Index: Trunk/XaraLX/wxOil/colpick.cpp
===================================================================
--- Trunk/XaraLX/wxOil/colpick.cpp	(revision 1349)
+++ Trunk/XaraLX/wxOil/colpick.cpp	(revision 1350)
@@ -2933,7 +2933,9 @@
 		pPicker->SetSize(pPicker->GetSize().GetWidth()+1, pPicker->GetSize().GetHeight()+1); // cause a resize
 		WindowID->Layout();
 		WindowID->Fit();
-		WindowID->GetSizer()->SetSizeHints(WindowID);
+		wxSizer * pSizer = WindowID->GetSizer();
+		if (pSizer)
+			pSizer->SetSizeHints(WindowID);
 		pPicker->SetMinSize(s_UserSize);
 		pPicker->SetMaxSize(s_UserSize);
 		pPicker->SetSize(s_UserSize);


Xara