git.s-ol.nu inkscape / 07da321
fix Glib::Regex::match stack-use-after-scope Fixes cursor jumping mentioned by @nathanal: https://gitlab.com/inkscape/inkscape/issues/521#note_247899536 Thomas Holder 2 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10501050 if (style->shape_inside.set && (val = style->shape_inside.value())) {
10511051 static Glib::RefPtr<Glib::Regex> regex = Glib::Regex::create("url\\(#([A-z0-9#]*)\\)");
10521052 Glib::MatchInfo matchInfo;
1053 regex->match(val, matchInfo);
1053
1054 // Glib::Regex::match stack-use-after-scope workaround
1055 // https://gitlab.gnome.org/GNOME/glibmm/issues/66
1056 Glib::ustring val_stack = val;
1057
1058 regex->match(val_stack, matchInfo);
10541059
10551060 while (matchInfo.matches()) {
10561061 shapes.push_back(matchInfo.fetch(1));