mirror of https://github.com/KLayout/klayout.git
Merge pull request #233 from KLayout/issue-232
Fixed #232 by limiting the allowed number of string to the maximum su…
This commit is contained in:
commit
61dd796f67
|
|
@ -722,8 +722,8 @@ DitherPatternInfo::from_strings (const std::vector<std::string> &strv)
|
|||
data[l] = 0;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < strv.size (); ++i) {
|
||||
uint_from_string (strv [strv.size () - 1 - i].c_str (), data [i], w);
|
||||
for (size_t i = 0; i < h; ++i) {
|
||||
uint_from_string (strv [h - 1 - i].c_str (), data [i], w);
|
||||
}
|
||||
|
||||
set_pattern (data, w, h);
|
||||
|
|
|
|||
Loading…
Reference in New Issue