diff --git a/src/db/db/dbLayout.cc b/src/db/db/dbLayout.cc index ab60ae787..c3505b24b 100644 --- a/src/db/db/dbLayout.cc +++ b/src/db/db/dbLayout.cc @@ -531,6 +531,8 @@ Layout::operator= (const Layout &d) m_tech_name = d.m_tech_name; + m_prop_id = d.m_prop_id; + } return *this; } diff --git a/src/doc/doc/about/packages.xml b/src/doc/doc/about/packages.xml index ad3bfe060..28dbc6689 100644 --- a/src/doc/doc/about/packages.xml +++ b/src/doc/doc/about/packages.xml @@ -138,7 +138,7 @@ this can be a web server or a folder on a file server. KLayout talks WebDAV, so the web server needs to offer WebDAV access. A subversion (SVN) server provides WebDAV by default, so this is a good - choice. For the packages themselves Git or WebDAV/Subversion can be used. You + choice. For the packages themselves, Git or WebDAV/Subversion can be used. You need to specify the protocol in the package URL (see below).

diff --git a/testdata/ruby/dbLayoutTests1.rb b/testdata/ruby/dbLayoutTests1.rb index 284e1fea4..a9d084beb 100644 --- a/testdata/ruby/dbLayoutTests1.rb +++ b/testdata/ruby/dbLayoutTests1.rb @@ -2082,6 +2082,24 @@ class DBLayoutTests1_TestClass < TestBase end + def test_24 + + ly = RBA::Layout::new + ly.set_property("k1", 17) + ly.set_property(17, "42") + + assert_equal(17, ly.property("k1")) + assert_equal("42", ly.property(17)) + assert_equal(nil, ly.property(42)) + + ly_dup = ly.dup + + assert_equal(17, ly_dup.property("k1")) + assert_equal("42", ly_dup.property(17)) + assert_equal(nil, ly_dup.property(42)) + + end + # Iterating while flatten def test_issue200