Use GetFirstModule() for call that can be NULL
This commit is contained in:
parent
cbea5149cb
commit
99756efea5
|
@ -140,7 +140,7 @@ protected:
|
||||||
BOARD* board() const { return getModel<BOARD>(); }
|
BOARD* board() const { return getModel<BOARD>(); }
|
||||||
MODULE* module() const
|
MODULE* module() const
|
||||||
{
|
{
|
||||||
return board()->Modules().front();
|
return board()->GetFirstModule();
|
||||||
}
|
}
|
||||||
PCB_DISPLAY_OPTIONS* displayOptions() const;
|
PCB_DISPLAY_OPTIONS* displayOptions() const;
|
||||||
PCB_DRAW_PANEL_GAL* canvas() const;
|
PCB_DRAW_PANEL_GAL* canvas() const;
|
||||||
|
|
Loading…
Reference in New Issue