Skip test known to fail under macOS < 10.13

This commit is contained in:
Artur Wieczorek
2021-07-23 18:45:23 +02:00
parent bf2771d6d7
commit d4dd61800a

View File

@@ -3740,7 +3740,16 @@ static void RegionsAndPushPopState(wxScopedPtr<wxGraphicsContext>& gc, const wxB
{ {
// Setting muliple rectangular clipping regions // Setting muliple rectangular clipping regions
// for transformed wxGC and store/restore them. // for transformed wxGC and store/restore them.
#ifdef __WXOSX__
if ( !wxCheckOsVersion(10, 13) )
{
// Due to the bug in resetting clipping region when graphics state
// is pushed on the stack we need to skip test on macOS < 10.13.
WARN("Skipping test known not to work under macOS < 10.13");
return;
}
#endif
// Get rectangle of the entire drawing area. // Get rectangle of the entire drawing area.
double x, y, w, h; double x, y, w, h;
gc->GetClipBox(&x, &y, &w, &h); gc->GetClipBox(&x, &y, &w, &h);