diff --git a/src/controllers/analytic_controller.ts b/src/controllers/analytic_controller.ts index 7e9272c..50f0f60 100644 --- a/src/controllers/analytic_controller.ts +++ b/src/controllers/analytic_controller.ts @@ -266,17 +266,21 @@ export class AnalyticController { let segmentBorderColor; let segmentFillColor = fillColor; - if(s.labeled) { - segmentBorderColor = labeledSegmentBorderColor; - } else { - segmentBorderColor = borderColor; - } - if(this.labelingDeleteMode) { if(s.deleted) { segmentBorderColor = deletedSegmentBorderColor; segmentFillColor = deletedSegmentFillColor; } + } else { + if(s.deleted) { + return; + } + } + + if(s.labeled) { + segmentBorderColor = labeledSegmentBorderColor; + } else { + segmentBorderColor = borderColor; } var expanded = s.expandDist(rangeDist, 0.01);