Fixed default transparency for ColorPicker from sidebar (was appeared under OSX for empty extruder color).

+ Fixed wrong getting of instance printable value inside add_object_to_list()
This commit is contained in:
YuSanka 2019-08-20 15:26:57 +02:00
parent 03079d4928
commit 448d773da0
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ wxBitmapComboBox(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(15 *
auto colors = static_cast<ConfigOptionStrings*>(cfg->option("extruder_colour")->clone());
wxColour clr(colors->values[extruder_idx]);
if (!clr.IsOk())
clr = wxTransparentColour;
clr = wxColour(0,0,0); // Don't set alfa to transparence
auto data = new wxColourData();
data->SetChooseFull(1);