From: Stas Vilchik Date: Tue, 29 Jul 2014 12:49:01 +0000 (+0200) Subject: Fix the issue with duplications on the last line X-Git-Tag: 4.4~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05b0c241019c14fd80fa8e732fa7fbd7a2f0fd1f;p=sonarqube.git Fix the issue with duplications on the last line --- 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