From 05b0c241019c14fd80fa8e732fa7fbd7a2f0fd1f Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 29 Jul 2014 14:49:01 +0200 Subject: [PATCH] Fix the issue with duplications on the last line --- sonar-server/src/main/coffee/component-viewer/source.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index 7d47af82001..a69ace3aa3f 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -202,7 +202,7 @@ define [ line = $(e.currentTarget).closest('[data-line-number]').data 'line-number' blocks = @model.get('duplications')[index - 1].blocks blocks = _.filter blocks, (b) -> - (b._ref != '1') || (b._ref == '1' && b.from > line) || (b._ref == '1' && b.from + b.size <= line) + (b._ref != '1') || (b._ref == '1' && b.from > line) || (b._ref == '1' && b.from + b.size < line) popup = new DuplicationPopupView triggerEl: $(e.currentTarget) main: @options.main -- 2.39.5