Merge pull request #961 from KLayout/issue-960

Fixed #960 (cap value not shown in netlist browser)
This commit is contained in:
Matthias Köfferlein 2021-12-29 23:15:36 +01:00 committed by GitHub
commit 23207c2fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ std::string device_parameter_string (const db::Device *device)
const std::vector<db::DeviceParameterDefinition> &pd = device->device_class ()->parameter_definitions ();
for (std::vector<db::DeviceParameterDefinition>::const_iterator p = pd.begin (); p != pd.end (); ++p) {
double v = device->parameter_value (p->id ());
if (! tl::equal (v, p->default_value ())) {
if (v > 0.0) {
if (first) {
s += " [";
first = false;