Skip to content

Commit

Permalink
#4778_incorect_section_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
egrebenchenko authored Aug 30, 2024
1 parent a3a9706 commit bd13936
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/MRViewer/MRPlaneWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ void PlaneWidget::definePlane()

void PlaneWidget::undefinePlane()
{
if ( line_ )
{
line_->detachFromParent();
line_.reset();
pressed_ = false;
}

if ( !planeObj_ )
return;

Expand Down

0 comments on commit bd13936

Please sign in to comment.