mirror of https://github.com/KLayout/klayout.git
Fixed a segfault in the layout view tests
This commit is contained in:
parent
c6e457d3d6
commit
2441775b76
|
|
@ -740,13 +740,17 @@ LayoutView::configure (const std::string &name, const std::string &value)
|
|||
|
||||
int os = 1;
|
||||
tl::from_string (value, os);
|
||||
mp_control_panel->set_oversampling (os);
|
||||
if (mp_control_panel) {
|
||||
mp_control_panel->set_oversampling (os);
|
||||
}
|
||||
|
||||
} else if (name == cfg_highres_mode) {
|
||||
|
||||
bool hrm = false;
|
||||
tl::from_string (value, hrm);
|
||||
mp_control_panel->set_highres_mode (hrm);
|
||||
if (mp_control_panel) {
|
||||
mp_control_panel->set_highres_mode (hrm);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue