Fix bug in which a line count without empty lines was incorrectly used

This commit is contained in:
George Dewar
2014-04-17 14:42:05 +12:00
parent 9b52affe31
commit 5ef7fdbd54
+1 -1
View File
@@ -116,7 +116,7 @@ module CommitsHelper
added_lines[line_new] = { line_code: line_code, type: type, line: line }
end
end
max_length = old_file ? old_file.sloc + added_lines.length : file.sloc
max_length = old_file ? [old_file.loc, file.loc].max : file.loc
offset1 = 0
offset2 = 0