aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-21 10:45:01 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-03-21 14:18:29 +0100
commite4812e68e4e79a81911f1ac652e4ccb2f28ddac6 (patch)
tree43e014c921808dbac117fd3067dafe6022ae938d /server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
parent8b618fcbddab0602203e5b79111c67ee263d6992 (diff)
downloadsonarqube-e4812e68e4e79a81911f1ac652e4ccb2f28ddac6.tar.gz
sonarqube-e4812e68e4e79a81911f1ac652e4ccb2f28ddac6.zip
fix display of covered lines in source viewer's details
Diffstat (limited to 'server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js')
-rw-r--r--server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
index 1a933892f76..953a3e90f80 100644
--- a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
+++ b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
@@ -123,7 +123,7 @@ export default ModalView.extend({
calcAdditionalMeasures (measures) {
if (measures.lines_to_cover && measures.uncovered_lines) {
- measures.covered_lines = measures.lines_to_cover - measures.uncovered_lines;
+ measures.covered_lines = measures.lines_to_cover_raw - measures.uncovered_lines_raw;
}
if (measures.conditions_to_cover && measures.uncovered_conditions) {
measures.covered_conditions = measures.conditions_to_cover - measures.uncovered_conditions;