diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-05-07 20:10:19 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-06-02 09:50:17 +0000 |
| commit | b29e3bd5c1362333e412dfeab7de7b218a3b38c2 (patch) | |
| tree | e0dd42d2c18074488deae2f6f80df1c7b5ed2854 /src | |
| parent | add storing (diff) | |
| download | inkscape-b29e3bd5c1362333e412dfeab7de7b218a3b38c2.tar.gz inkscape-b29e3bd5c1362333e412dfeab7de7b218a3b38c2.zip | |
add writing method
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/styledialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/styledialog.cpp b/src/ui/dialog/styledialog.cpp index 5c88855dd..f2ce7e8ad 100644 --- a/src/ui/dialog/styledialog.cpp +++ b/src/ui/dialog/styledialog.cpp @@ -781,7 +781,7 @@ void StyleDialog::_writeStyleElement(Glib::RefPtr<Gtk::TreeStore> store) } else if (!selector.empty()) { //styleshhetç // We could test if styleContent is empty and then delete the style node here but there is no // harm in keeping it around ... - + SP_ACTIVE_DOCUMENT->setStyleSheet(nullptr); std::string pos = std::to_string(selectorpos); std::string selectormatch = "("; for (selectorpos; selectorpos > 0; selectorpos--) { @@ -794,12 +794,12 @@ void StyleDialog::_writeStyleElement(Glib::RefPtr<Gtk::TreeStore> store) std::string result; std::regex_replace (std::back_inserter(result), content.begin(), content.end(), e, "$1" + styleContent + "$3"); textNode->setContent(result.c_str()); - obj->emitModified(SP_OBJECT_STYLE_MODIFIED_FLAG |SP_OBJECT_PARENT_MODIFIED_FLAG); } - + DocumentUndo::done(SP_ACTIVE_DOCUMENT, SP_VERB_DIALOG_STYLE, _("Edited style element.")); _updating = false; + _readStyleElement(); g_debug("StyleDialog::_writeStyleElement(): | %s |", styleContent.c_str()); } |
