Fixed issue-1259

This commit is contained in:
Matthias Koefferlein 2023-01-24 21:14:36 +01:00
parent 18900215e6
commit 7600eac8a0
3 changed files with 17 additions and 1 deletions

View File

@ -3314,7 +3314,7 @@ LayoutViewBase::create_layout (const std::string &technology, bool add_cellview,
{
const db::Technology *tech = db::Technologies::instance ()->technology_by_name (technology);
db::Layout *layout = new db::Layout (manager ());
db::Layout *layout = new db::Layout (m_editable, manager ());
if (tech) {
layout->dbu (tech->dbu ());
}

View File

@ -1309,6 +1309,7 @@ TEST (16)
int cv1 = view.create_layout ("", true, false);
db::Layout &ly1 = view.cellview (cv1)->layout ();
EXPECT_EQ (ly1.is_editable (), is_editable ());
ly1.insert_layer (db::LayerProperties (1, 0));
ly1.insert_layer (db::LayerProperties (2, 0));

View File

@ -535,6 +535,21 @@ class LAYLayoutView_TestClass < TestBase
end
# issue-1259
def test_7
# standalone layout view
lv = RBA::LayoutView::new(true)
assert_equal(lv.is_editable, true)
lv.create_layout(true)
layout = lv.active_cellview.layout
assert_equal(layout.is_editable, true)
end
end
load("test_epilogue.rb")