summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/style-swatch.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2014-07-22 19:16:52 +0000
committerMarkus Engel <markus.engel@tum.de>2014-07-22 19:16:52 +0000
commitd7c36cd293ee35f53a5b47f2795b061888d4f79b (patch)
treede6360804cfdec65afcd11945db38051bd760817 /src/ui/widget/style-swatch.cpp
parentReplaced some abs/fabs with std::abs. (diff)
downloadinkscape-d7c36cd293ee35f53a5b47f2795b061888d4f79b.tar.gz
inkscape-d7c36cd293ee35f53a5b47f2795b061888d4f79b.zip
Fixed some logic errors; clang warnings.
(bzr r13460)
Diffstat (limited to 'src/ui/widget/style-swatch.cpp')
-rw-r--r--src/ui/widget/style-swatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget/style-swatch.cpp b/src/ui/widget/style-swatch.cpp
index a33c1d09f..98f4e47cd 100644
--- a/src/ui/widget/style-swatch.cpp
+++ b/src/ui/widget/style-swatch.cpp
@@ -261,7 +261,7 @@ void StyleSwatch::setStyle(SPCSSAttr *css)
Glib::ustring css_string;
sp_repr_css_write_string (_css, css_string);
SPStyle *temp_spstyle = sp_style_new(SP_ACTIVE_DOCUMENT);
- if (~css_string.empty()) {
+ if (!css_string.empty()) {
sp_style_merge_from_style_string (temp_spstyle, css_string.c_str());
}