Use GetFirstModule() for call that can be NULL

This commit is contained in:
Seth Hillbrand 2019-06-02 12:57:56 -07:00
parent cbea5149cb
commit 99756efea5
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ protected:
BOARD* board() const { return getModel<BOARD>(); }
MODULE* module() const
{
return board()->Modules().front();
return board()->GetFirstModule();
}
PCB_DISPLAY_OPTIONS* displayOptions() const;
PCB_DRAW_PANEL_GAL* canvas() const;