Skip to content
Snippets Groups Projects
Commit 39134c32 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better fix

parent ab96672a
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,10 @@ PView::PView(PView *ref, bool copyOptions) ...@@ -62,7 +62,10 @@ PView::PView(PView *ref, bool copyOptions)
if(ref->getAliasOf()){ // alias of an alias if(ref->getAliasOf()){ // alias of an alias
PView *orig = getViewByNum(ref->getAliasOf()); PView *orig = getViewByNum(ref->getAliasOf());
if(orig) _aliasOf = orig->getNum(); if(orig) _aliasOf = orig->getNum();
else Msg::Error("Could not find original view for alias"); else{
Msg::Warning("Original view for alias does not exist anymore");
_aliasOf = ref->getNum();
}
} }
else else
_aliasOf = ref->getNum(); _aliasOf = ref->getNum();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment