mirror of https://github.com/KLayout/klayout.git
Fixed issue #1534 (Layout::dup does not copy properties)
This commit is contained in:
parent
bc8e1c38f2
commit
1e09bee1b6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue