Give error messages for invalid sizer flags in XRC wxSizer handler.
This allows to give the exact line number of the error, unlike asserts that happen in wxSizer code which don't point exactly to the error location when sizers are created via XRC. It also has the advantage of allowing to detect wrong use of wxALIGN_LEFT and wxALIGN_TOP, unlike the asserts which can't do it because the value of both of these flags is 0.
This commit is contained in:
@@ -57,6 +57,7 @@ private:
|
||||
wxSizerItem* MakeSizerItem();
|
||||
void SetSizerItemAttributes(wxSizerItem* sitem);
|
||||
void AddSizerItem(wxSizerItem* sitem);
|
||||
int GetSizerFlags();
|
||||
};
|
||||
|
||||
#if wxUSE_BUTTON
|
||||
|
Reference in New Issue
Block a user