From 62eb67d6cece6f96ec336e568afc34d4f1970ffa Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 5 Sep 2023 09:45:51 +0200 Subject: [PATCH] Compatibility with older KLayout versions --- src/ruby/xsection_generator.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ruby/xsection_generator.rb b/src/ruby/xsection_generator.rb index 31d88e9..316eb6a 100644 --- a/src/ruby/xsection_generator.rb +++ b/src/ruby/xsection_generator.rb @@ -438,7 +438,8 @@ def background @lines.each do |line| box += RBA::Box::new(line.p1, line.p2) end - box.enlarge(@extend + @delta * 5) + enl = @extend + @delta * 5 + box.enlarge(RBA::Vector::new(enl, enl)) return box end