summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff/image_point.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/diff/image_point.rb')
-rw-r--r--lib/gitlab/diff/image_point.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/diff/image_point.rb b/lib/gitlab/diff/image_point.rb
index 65332dfd239..1f157354ea4 100644
--- a/lib/gitlab/diff/image_point.rb
+++ b/lib/gitlab/diff/image_point.rb
@@ -3,11 +3,11 @@ module Gitlab
class ImagePoint
attr_reader :width, :height, :x, :y
- def initialize(width, height, x, y)
+ def initialize(width, height, new_x, new_y)
@width = width
@height = height
- @x = x
- @y = y
+ @x = new_x
+ @y = new_y
end
def to_h