Skip to content

Commit

Permalink
Re #16: Linear object models are not deleted when linear objects are …
Browse files Browse the repository at this point in the history
…swapped.
  • Loading branch information
matthewsholden committed May 14, 2014
1 parent 9648131 commit 842af15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MRML/vtkMRMLLinearObjectCollectionNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ ::Swap( int index0, int index1 )
vtkSmartPointer< vtkLORLinearObject > linearObject0 = this->GetLinearObject( index0 );
vtkSmartPointer< vtkLORLinearObject > linearObject1 = this->GetLinearObject( index1 );

this->RemoveLinearObject( index0 );
this->RemoveLinearObject( index1 );

this->SetLinearObject( index0, linearObject1 );
this->SetLinearObject( index1, linearObject0 );

Expand Down

0 comments on commit 842af15

Please sign in to comment.