summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/selectorsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/selectorsdialog.cpp')
-rw-r--r--src/ui/dialog/selectorsdialog.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ui/dialog/selectorsdialog.cpp b/src/ui/dialog/selectorsdialog.cpp
index f66876475..375d2d89b 100644
--- a/src/ui/dialog/selectorsdialog.cpp
+++ b/src/ui/dialog/selectorsdialog.cpp
@@ -25,8 +25,8 @@
#include "verbs.h"
#include "xml/attribute-record.h"
-#include "xml/sp-css-attr.h"
#include "xml/node-observer.h"
+#include "xml/sp-css-attr.h"
#include <glibmm/i18n.h>
#include <glibmm/regex.h>
@@ -395,10 +395,7 @@ void SelectorsDialog::_panedresized(Gtk::Allocation allocation)
_resized();
}
-void SelectorsDialog::_panedrealized()
-{
- _style_dialog->readStyleElement();
-}
+void SelectorsDialog::_panedrealized() { _style_dialog->readStyleElement(); }
void SelectorsDialog::_childresized()
{
@@ -877,10 +874,8 @@ void SelectorsDialog::_addToSelector(Gtk::TreeModel::Row row)
sp_repr_css_attr_add_from_string(css, obj->getRepr()->attribute("style"));
Glib::ustring selprops = row[_mColumns._colProperties];
sp_repr_css_attr_add_from_string(css_selector, selprops.c_str());
- for ( List<AttributeRecord const> iter = css_selector->attributeList() ;
- iter ; ++iter )
- {
- gchar const * key = g_quark_to_string(iter->key);
+ for (List<AttributeRecord const> iter = css_selector->attributeList(); iter; ++iter) {
+ gchar const *key = g_quark_to_string(iter->key);
css->setAttribute(key, nullptr);
}
sp_repr_css_write_string(css, css_str);