JSON bools can be read straight up; no need to compare to "true".

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15197
This commit is contained in:
Jeff Young 2023-07-14 20:57:55 +01:00
parent d02e94805a
commit 041bd2a54f
1 changed files with 2 additions and 2 deletions

View File

@ -1857,8 +1857,8 @@ bool SIMULATOR_FRAME_UI::loadJsonWorkbook( const wxString& aPath )
plotTab->Measurements().emplace_back( m_js[ "expr" ], m_js[ "format" ] ); plotTab->Measurements().emplace_back( m_js[ "expr" ], m_js[ "format" ] );
} }
plotTab->SetDottedSecondary( tab_js[ "dottedSecondary" ] == "true" ); plotTab->SetDottedSecondary( tab_js[ "dottedSecondary" ] );
plotTab->ShowGrid( tab_js[ "showGrid" ] == "true" ); plotTab->ShowGrid( tab_js[ "showGrid" ] );
} }
} }