Fixed issue #1533 (KLayout crashing with two consecutive calls of the same LayoutView::show_layout command)

This commit is contained in:
Matthias Koefferlein
2023-11-19 21:14:32 +01:00
parent 1e09bee1b6
commit 6e589e2bb3
4 changed files with 55 additions and 3 deletions
+20
View File
@@ -550,6 +550,26 @@ class LAYLayoutView_TestClass < TestBase
end
# issue-1533
def test_8
if !RBA.constants.member?(:Application)
return
end
app = RBA::Application.instance
mw = app.main_window
mw.close_all
mw.create_view
ly = RBA::Layout::new
mw.current_view.show_layout(ly, false)
# was crashing
mw.current_view.show_layout(ly, false)
end
end
load("test_epilogue.rb")