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

setOptions() now always performs a deep copy

parent 9c71d28a
No related branches found
No related tags found
No related merge requests found
......@@ -185,9 +185,10 @@ void PView::deleteVertexArrays()
void PView::setOptions(PViewOptions *val)
{
// deep copy options
if(val)
_options = val;
else if(_options) // deep copy options from reference view
*_options = *val;
else if(_options)
*_options = *PViewOptions::reference();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment