From 107052535c8abd107bb98ece0149f013687b7d10 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 14 Feb 2016 21:35:26 +0100 Subject: Fix improperly escaped character in previous commit (which actually fixes bug 1492153, sorry for the mix-up) Fixed bugs: - https://launchpad.net/bugs/1492153 (bzr r14651) --- src/extension/internal/cdr-input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extension/internal/cdr-input.cpp') diff --git a/src/extension/internal/cdr-input.cpp b/src/extension/internal/cdr-input.cpp index c8df804bc..a4e26e224 100644 --- a/src/extension/internal/cdr-input.cpp +++ b/src/extension/internal/cdr-input.cpp @@ -283,7 +283,7 @@ SPDocument *CdrInput::open(Inkscape::Extension::Input * /*mod*/, const gchar * u } // remove consecutive closepath commands (see bug 1492153) - Glib::RefPtr regex = Glib::Regex::create("(Z(?:[\n\s]+Z)+)(?=[^<]+\")"); + Glib::RefPtr regex = Glib::Regex::create("(Z(?:\\s+Z)+)(?=[^<]+\")"); Glib::ustring outString1 = Glib::ustring(tmpSVGOutput[page_num-1].cstr()); Glib::ustring outString2 = regex->replace(outString1, 0, "Z", Glib::REGEX_MATCH_NEWLINE_ANY); -- cgit v1.2.3