WIP: Plater, build fixes

This commit is contained in:
Vojtech Kral 2018-10-04 11:12:55 +02:00
parent 99fe5761d8
commit 1f926964ee
15 changed files with 511 additions and 143 deletions

View file

@ -611,8 +611,9 @@ void ColourPicker::BUILD()
if (m_opt.width >= 0) size.SetWidth(m_opt.width);
wxString clr(static_cast<const ConfigOptionStrings*>(m_opt.default_value)->get_at(m_opt_idx));
// FIXME: verify clr is valid, otherwise this causes an assert
auto temp = new wxColourPickerCtrl(m_parent, wxID_ANY, clr, wxDefaultPosition, size);
// // recast as a wxWindow to fit the calling convention
window = dynamic_cast<wxWindow*>(temp);