summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/attrdialog.cpp2
-rw-r--r--src/ui/dialog/object-properties.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/attrdialog.cpp b/src/ui/dialog/attrdialog.cpp
index 4ccb037ef..a943f4b23 100644
--- a/src/ui/dialog/attrdialog.cpp
+++ b/src/ui/dialog/attrdialog.cpp
@@ -236,7 +236,7 @@ void AttrDialog::onAttrChanged(Inkscape::XML::Node *repr, const gchar * name, co
}
if (new_value) {
if ((repr->type() == Inkscape::XML::TEXT_NODE || repr->type() == Inkscape::XML::COMMENT_NODE) &&
- name != "content")
+ strcmp(name, "content") != 0)
{
return;
} else {
diff --git a/src/ui/dialog/object-properties.cpp b/src/ui/dialog/object-properties.cpp
index 7ec9ccafa..c89d96230 100644
--- a/src/ui/dialog/object-properties.cpp
+++ b/src/ui/dialog/object-properties.cpp
@@ -315,7 +315,7 @@ void ObjectProperties::update()
return;
}
_blocked = true;
- _cb_aspect_ratio.set_active(item->getAttribute("preserveAspectRatio") == "true");
+ _cb_aspect_ratio.set_active(strcmp(item->getAttribute("preserveAspectRatio"), "true") == 0);
_cb_lock.set_active(item->isLocked()); /* Sensitive */
_cb_hide.set_active(item->isExplicitlyHidden()); /* Hidden */