FIX: remove layer menu

1.remove layer menu
2.add dark color adaption of obj_layer

Change-Id: I8faf5f69359f0d0fff769887b800f3963884d55d
This commit is contained in:
liz.li 2023-04-06 16:57:02 +08:00 committed by Lane.Wei
parent 8ace4e6d81
commit 7efa355ff5
3 changed files with 3 additions and 3 deletions

View file

@ -289,7 +289,7 @@ void ObjectLayers::sys_color_changed()
if (item->IsSizer()) {// case when we have editor with buttons
for (size_t btn : {2, 3}) { // del_btn, add_btn
wxSizerItem* b_item = item->GetSizer()->GetItem(btn);
if (b_item->IsWindow()) {
if (b_item && b_item->IsWindow()) {
auto button = dynamic_cast<PlusMinusButton*>(b_item->GetWindow());
if (button != nullptr)
button->msw_rescale();