diff options
author | YuSanka <yusanka@gmail.com> | 2019-05-23 16:12:19 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-05-23 16:12:19 +0300 |
commit | 149665742c548a20565125c5d0682d78513e69fe (patch) | |
tree | 1c9f01cad1659437d2785ba8d3955f50b37d97ff /src | |
parent | be2681dab6e5064ddf886cd8ae6dbfe1b5695506 (diff) |
Fix of #2318
Diffstat (limited to 'src')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 854f3143a..0b2381939 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -354,8 +354,8 @@ DynamicPrintConfig& ObjectList::get_item_config(const wxDataViewItem& item) cons const int vol_idx = type & itVolume ? m_objects_model->GetVolumeIdByItem(item) : -1; assert(obj_idx >= 0 || ((type & itVolume) && vol_idx >=0)); - return type & itObject|itInstance ? (*m_objects)[obj_idx]->config : - (*m_objects)[obj_idx]->volumes[vol_idx]->config; + return type & itVolume ?(*m_objects)[obj_idx]->volumes[vol_idx]->config : + (*m_objects)[obj_idx]->config; } wxDataViewColumn* ObjectList::create_objects_list_extruder_column(int extruders_count) |