X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d99c7a77789ff4904bf96eddca3715eb5af9b9..88f23fdd8366d57d15cba42d152539ff9ccbdd39:/src/common/layout.cpp diff --git a/src/common/layout.cpp b/src/common/layout.cpp index 1dd0c63123..8966a49b9f 100644 --- a/src/common/layout.cpp +++ b/src/common/layout.cpp @@ -734,7 +734,7 @@ int wxIndividualLayoutConstraint::GetEdge(wxEdge which, // If the edge or dimension belongs to the parent, then we know the // dimension is obtainable immediately. E.g. a wxExpandSizer may contain a // button (but the button's true parent is a panel, not the sizer) - if (other->GetChildren().Find(thisWin)) + if (other->GetChildren().Find((wxWindow*)thisWin)) { switch (which) {