Skip to content
This repository
Browse code

polylinesegment skip locked or hidden entities

  • Loading branch information...
commit 7862d7a168c4b778f28d85565e051926f9c1fc8d 1 parent 52ebc76
Rallaz Rallaz authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  librecad/src/actions/rs_actionpolylinesegment.cpp
2  librecad/src/actions/rs_actionpolylinesegment.cpp
@@ -127,7 +127,7 @@ bool RS_ActionPolylineSegment::convertPolyline(RS_Entity* selectedEntity) {
127 127 //get list with useful entities
128 128 for (uint i=0; i<container->count(); ++i) {
129 129 RS_Entity* e1 = container->entityAt(i);
130   - if (e1->isUndone() || e1 == selectedEntity) continue;
  130 + if (e1->isLocked() || !e1->isVisible() || e1 == selectedEntity) continue;
131 131 if (e1->rtti()==RS2::EntityLine || e1->rtti()==RS2::EntityArc
132 132 || e1->rtti()==RS2::EntityPolyline) {
133 133 if (targetEntity->rtti()==RS2::EntityPolyline && ((RS_Polyline*)targetEntity)->isClosed())

0 comments on commit 7862d7a

Please sign in to comment.
Something went wrong with that request. Please try again.