diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-05-14 23:45:48 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-02 09:50:17 +0000 |
| commit | ef02728bee2e3011ad09f405db348a3c053ff4f9 (patch) | |
| tree | f34b47660649b752cfcd7fc92438131c32088c79 | |
| parent | First full working (diff) | |
| download | inkscape-ef02728bee2e3011ad09f405db348a3c053ff4f9.tar.gz inkscape-ef02728bee2e3011ad09f405db348a3c053ff4f9.zip | |
Fix a bug on undo, backpoer from master
| -rw-r--r-- | src/ui/dialog/selectordialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/selectordialog.cpp b/src/ui/dialog/selectordialog.cpp index b92c0d82a..529b7c06c 100644 --- a/src/ui/dialog/selectordialog.cpp +++ b/src/ui/dialog/selectordialog.cpp @@ -383,11 +383,11 @@ Inkscape::XML::Node* SelectorDialog::_getStyleTextNode() styleNode = SP_ACTIVE_DOCUMENT->getReprDoc()->createElement("svg:style"); textNode = SP_ACTIVE_DOCUMENT->getReprDoc()->createTextNode(""); - styleNode->appendChild(textNode); - Inkscape::GC::release(textNode); - root->addChild(styleNode, nullptr); Inkscape::GC::release(styleNode); + + styleNode->appendChild(textNode); + Inkscape::GC::release(textNode); } if (_textNode != textNode) { @@ -468,7 +468,7 @@ void SelectorDialog::_readStyleElement() for (auto tok : tokensplus) { REMOVE_SPACES(tok); if (SPAttributeRelSVG::isSVGElement(tok) || tok.find(" ") != -1 || tok[0] == '>' || tok[0] == '+' || -+ tok[0] == '~' || tok[0] == '*' || tok.erase(0, 1).find(".") != -1) { + tok[0] == '~' || tok[0] == '*' || tok.erase(0, 1).find(".") != -1) { colType = UNHANDLED; } } |
