Skip to content

Commit

Permalink
Fixed #232 by limiting the allowed number of string to the maximum su…
Browse files Browse the repository at this point in the history
…pported stipple height (32).
  • Loading branch information
klayoutmatthias committed Feb 23, 2019
1 parent f93dc85 commit f40d437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/laybasic/laybasic/layDitherPattern.cc
Expand Up @@ -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);
Expand Down

0 comments on commit f40d437

Please sign in to comment.