Disable sizer flag checks if WXSUPPRESS_SIZER_FLAGS_CHECK is set

This provides a less intrusive, and also usable by the end users rather
than only by the developers, way of doing the same thing as the just
added wxSizerFlags::DisableConsistencyChecks() does.
This commit is contained in:
Vadim Zeitlin
2021-05-20 00:29:43 +01:00
parent 2e289d7231
commit 1d6c740f3b
4 changed files with 39 additions and 7 deletions

View File

@@ -1499,6 +1499,10 @@ public:
using this function, especially permanently, rather than a temporary
workaround, is @e not recommended.
Notice that the same effect as calling this function can be achieved by
setting the environment variable @c WXSUPPRESS_SIZER_FLAGS_CHECK to any
value.
@since 3.1.6
*/
static void DisableConsistencyChecks();