This commit is contained in:
Matthias Köfferlein 2022-05-19 22:14:07 +02:00 committed by GitHub
parent f15462c239
commit 3a2d44bd12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -2046,6 +2046,10 @@ MainWindow::cm_load_layer_props ()
void
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;
if (current_view ()->cellviews () > 1 && is_single_cv_layer_properties_file (fn)) {