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:
parent
d02e94805a
commit
041bd2a54f
|
@ -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" ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue