[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : alex
Repository : xara
Revision : 1349
Date : Wed Jun 21 17:56:37 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/colpick.cpp
Only resize the sizer if it exists
Diff:
Index: Trunk/XaraLX/wxOil/colpick.cpp
===================================================================
--- Trunk/XaraLX/wxOil/colpick.cpp (revision 1348)
+++ Trunk/XaraLX/wxOil/colpick.cpp (revision 1349)
@@ -3108,7 +3108,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