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() ...@@ -185,9 +185,10 @@ void PView::deleteVertexArrays()
void PView::setOptions(PViewOptions *val) void PView::setOptions(PViewOptions *val)
{ {
// deep copy options
if(val) if(val)
_options = val; *_options = *val;
else if(_options) // deep copy options from reference view else if(_options)
*_options = *PViewOptions::reference(); *_options = *PViewOptions::reference();
} }
......
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