Ticket URL: <
http://trac.wxwidgets.org/ticket/14739>
#14739: Mac Cocoa assert-fail, wxFD_FILE_MUST_EXIST==wxFRAME_SHAPED
-------------------------------------------------+--------------------------
Reporter: andyr | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version:
Keywords: wxFD_FILE_MUST_EXIST wxFRAME_SHAPED | Blockedby:
Patch: 0 | Blocking:
-------------------------------------------------+--------------------------
I'm actually using a snapshot from 2012-09-24
And as I say,
wxFD_FILE_MUST_EXIST==wxFRAME_SHAPED==0x10
You can see this cause an assert in the dialogs sample as follows:
In MyApp:OnInit, add
wxSystemOptions::SetOption(wxOSX_FILEDIALOG_ALWAYS_SHOW_TYPES, 1);
And in FileOpen2, add the style wxFD_FILE_MUST_EXIST
It now asserts when you select Dialogs - File operations - Second open
file.
This is caused by some drawing code thinking it is seeing the
wxFRAME_SHAPED flag, tries to get the shape of the window, but it hasn't
got one.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/14739>