From aca0195581cd52dd35842398e5110c27a24e2d63 Mon Sep 17 00:00:00 2001 From: rozetko Date: Wed, 10 Oct 2018 20:47:08 +0300 Subject: [PATCH] Deleted segments are always visible #76 (#77) --- src/controllers/analytic_controller.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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);