Skip to content

Commit

Permalink
Do not enable edit if polygon is read only
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Mar 15, 2024
1 parent 873535e commit 126e5d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ caf::PickEventHandler* RimPolygonFilter::pickEventHandler() const
if ( filterColl && !filterColl->isActive() ) return nullptr;

if ( !isActive() ) return nullptr;
if ( !isPolygonDefinedLocally() && m_cellFilterPolygon && m_cellFilterPolygon()->isReadOnly() ) return nullptr;

return m_pickTargetsEventHandler.get();
}
Expand Down

0 comments on commit 126e5d3

Please sign in to comment.