mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 05:25:58 +08:00
build fix & ctd fix (check null)
This commit is contained in:
parent
dc17f37045
commit
3b253f3bb4
@ -8,7 +8,7 @@
|
||||
namespace Slic3r {
|
||||
|
||||
class Surface;
|
||||
class SegmentedIntersectionLine;
|
||||
struct SegmentedIntersectionLine;
|
||||
struct ExPolygonWithOffset;
|
||||
|
||||
class FillRectilinear : public Fill
|
||||
|
@ -291,7 +291,7 @@ void ObjectLayers::sys_color_changed()
|
||||
const std::vector<size_t> btns = {2, 3}; // del_btn, add_btn
|
||||
for (auto btn : btns) {
|
||||
wxSizerItem* b_item = item->GetSizer()->GetItem(btn);
|
||||
if (b_item->IsWindow()) {
|
||||
if (b_item != nullptr && b_item->IsWindow()) {
|
||||
auto button = dynamic_cast<PlusMinusButton*>(b_item->GetWindow());
|
||||
if (button != nullptr)
|
||||
button->msw_rescale();
|
||||
|
Loading…
x
Reference in New Issue
Block a user