diff --git a/qa/pns/pns_log_viewer.cpp b/qa/pns/pns_log_viewer.cpp index bc8ed73282..81c25d9056 100644 --- a/qa/pns/pns_log_viewer.cpp +++ b/qa/pns/pns_log_viewer.cpp @@ -291,7 +291,7 @@ PNS_LOG_VIEWER_FRAME::PNS_LOG_VIEWER_FRAME( wxFrame* frame ) : PNS_LOG_VIEWER_FR auto settings = static_cast( m_galPanel->GetView()->GetPainter()->GetSettings() ); - settings->SetZoneDisplayMode( ZONE_DISPLAY_MODE::SHOW_FILLED ); + settings.m_ZoneDisplayMode = ZONE_DISPLAY_MODE::SHOW_FILLED; m_listPopupMenu = new wxMenu( wxT( "" ) ); m_listPopupMenu->Append( ID_LIST_COPY, wxT( "Copy selected geometry" ), wxT( "" ), diff --git a/qa/qa_utils/mocks.cpp b/qa/qa_utils/mocks.cpp index a221e10e52..1726cf39ee 100644 --- a/qa/qa_utils/mocks.cpp +++ b/qa/qa_utils/mocks.cpp @@ -619,9 +619,9 @@ bool PCB_TOOL_BASE::Is45Limited() const } -const PCB_DISPLAY_OPTIONS& PCB_TOOL_BASE::displayOptions() const +PCBNEW_SETTINGS::DISPLAY_OPTIONS& PCB_TOOL_BASE::displayOptions() const { - static PCB_DISPLAY_OPTIONS disp; + static PCBNEW_SETTINGS::DISPLAY_OPTIONS disp; return disp; }