Updated fix (wasn't correctly representing some via pattern)

This commit is contained in:
Matthias Koefferlein 2020-03-02 00:20:15 +01:00
parent cec1910bf0
commit 04ae4d5d28
1 changed files with 1 additions and 3 deletions

View File

@ -656,7 +656,7 @@ LEFDEFImporter::create_generated_via (std::vector<db::Polygon> &bottom,
top.push_back (db::Polygon (via_box.enlarged (te).moved (to)));
const char *p = pattern.c_str ();
int rp = 0;
int rp = pattern.empty () ? -1 : 0;
const char *p0 = p, *p1 = p;
for (int r = 0; r < rows; ++r) {
@ -685,8 +685,6 @@ LEFDEFImporter::create_generated_via (std::vector<db::Polygon> &bottom,
++p;
}
} else {
rp = -1;
}
}