diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-03-21 07:28:28 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-03-21 14:13:19 +0000 |
| commit | 0b298633e153c543eae33eb7dadfdedb6098d33d (patch) | |
| tree | 14e519b44a50e852256aa41f614ac942325ce8e6 | |
| parent | share/README.md: Revert whitespace changes and format correct markdown (diff) | |
| download | inkscape-0b298633e153c543eae33eb7dadfdedb6098d33d.tar.gz inkscape-0b298633e153c543eae33eb7dadfdedb6098d33d.zip | |
fix #145 XML editor crash removing style property
| -rw-r--r-- | src/ui/dialog/cssdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/cssdialog.cpp b/src/ui/dialog/cssdialog.cpp index ea1b0d044..90488e203 100644 --- a/src/ui/dialog/cssdialog.cpp +++ b/src/ui/dialog/cssdialog.cpp @@ -312,7 +312,7 @@ bool CssDialog::setStyleProperty(Glib::ustring name, Glib::ustring value) std::map<Glib::ustring, Glib::ustring> properties = parseStyle(original); bool updated = false; - if (value != nullptr && !value.empty()) { + if (!value.empty()) { if (properties[name] != value) { // Set value (create or update) properties[name] = value; @@ -341,7 +341,7 @@ void CssDialog::onPropertyDelete(Glib::ustring path) { Gtk::TreeModel::Row row = *_store->get_iter(path); if (row) { - this->setStyleProperty(row[_cssColumns.label], nullptr); + this->setStyleProperty(row[_cssColumns.label], ""); } } |
