diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-11-03 19:02:46 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-11-03 19:59:20 +0000 |
| commit | 7308f9e1e734fc54661b3d79c4ff8e8fbeb84867 (patch) | |
| tree | 1c4287533b3727dcc74b6bd85de7f3834bedab7c /src/object/sp-path.cpp | |
| parent | make SP_ATTRIBUTE_IS_CSS a function (diff) | |
| download | inkscape-7308f9e1e734fc54661b3d79c4ff8e8fbeb84867.tar.gz inkscape-7308f9e1e734fc54661b3d79c4ff8e8fbeb84867.zip | |
refactor: Eliminate SPIString::value_default
- eliminate value_default
- make value private (-> _value)
- add value() method
Diffstat (limited to '')
| -rw-r--r-- | src/object/sp-path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-path.cpp b/src/object/sp-path.cpp index 9d7ef1fe0..58a823543 100644 --- a/src/object/sp-path.cpp +++ b/src/object/sp-path.cpp @@ -133,14 +133,14 @@ void SPPath::build(SPDocument *document, Inkscape::XML::Node *repr) { (d_source == SP_STYLE_SRC_STYLE_PROP || d_source == SP_STYLE_SRC_STYLE_SHEET) ) { - if (style->d.value) { + if (char const *d_val = style->d.value()) { // Chrome shipped with a different syntax for property vs attribute. // The SVG Working group decided to follow the Chrome syntax (which may // allow future extensions of the 'd' property). The property syntax // wraps the path data with "path(...)". We must strip that! // Must be Glib::ustring or we get conversion errors! - Glib::ustring input = style->d.value; + Glib::ustring input = d_val; Glib::ustring expression = R"A(path\("(.*)"\))A"; Glib::RefPtr<Glib::Regex> regex = Glib::Regex::create(expression); Glib::MatchInfo matchInfo; |
