lib/hexapdf/layout/table_box.rb in hexapdf-0.37.1 vs lib/hexapdf/layout/table_box.rb in hexapdf-0.37.2
- old
+ new
@@ -2,11 +2,11 @@
#
#--
# This file is part of HexaPDF.
#
# HexaPDF - A Versatile PDF Creation and Manipulation Library For Ruby
-# Copyright (C) 2014-2023 Thomas Leitner
+# Copyright (C) 2014-2024 Thomas Leitner
#
# HexaPDF is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License version 3 as
# published by the Free Software Foundation with the addition of the
# following permission added to Section 15 as permitted in Section 7(a):
@@ -255,12 +255,12 @@
# available_width is always equal to content_width but we need to adjust for the
# difference in the y direction between fitting and drawing
y -= (@fit_results[0].available_height - content_height)
@fit_results.each do |fit_result|
- fit_result.x += x
- fit_result.y += y
- fit_result.draw(canvas)
+ #fit_result.x += x
+ #fit_result.y += y
+ fit_result.draw(canvas, dx: x, dy: y)
end
end
end