mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-08 04:08:14 +02:00
Fixed issue #1533 (KLayout crashing with two consecutive calls of the same LayoutView::show_layout command)
This commit is contained in:
Vendored
+20
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user