mirror of https://github.com/KLayout/klayout.git
parent
f15462c239
commit
3a2d44bd12
|
|
@ -2046,6 +2046,10 @@ MainWindow::cm_load_layer_props ()
|
||||||
void
|
void
|
||||||
MainWindow::load_layer_props_from_file (const std::string &fn)
|
MainWindow::load_layer_props_from_file (const std::string &fn)
|
||||||
{
|
{
|
||||||
|
if (! current_view ()) {
|
||||||
|
throw tl::Exception (tl::to_string (QObject::tr ("No view open to load the layer properties for")));
|
||||||
|
}
|
||||||
|
|
||||||
int target_cv_index = -2;
|
int target_cv_index = -2;
|
||||||
|
|
||||||
if (current_view ()->cellviews () > 1 && is_single_cv_layer_properties_file (fn)) {
|
if (current_view ()->cellviews () > 1 && is_single_cv_layer_properties_file (fn)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue