lib/fn/pdf/node/invert.rb in fn_document-0.9.2 vs lib/fn/pdf/node/invert.rb in fn_document-0.9.3
- old
+ new
@@ -13,11 +13,11 @@
module Node
def Invert(block)
FN::Node::Base("invert",
:x => block["x"],
:y => block["y"],
- :x2 => block["x"].to_f + (block["boxWidth"] || block["width"]).to_f,
- :y2 => block["y"].to_f + (block["boxHeight"] || block["height"]).to_f
+ :x2 => block["x"].to_f + block["width"].to_f,
+ :y2 => block["y"].to_f + block["height"].to_f
).extend(Invert)
end
module Invert
include FN::Node::Base
\ No newline at end of file