summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-attribute-widget.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2013-04-29 00:51:29 +0000
committerJon A. Cruz <jon@joncruz.org>2013-04-29 00:51:29 +0000
commitc317c1f79519f0ee961842ffb9feac4494af5377 (patch)
tree28187bf8ccee447689430f1c0243700e0565e958 /src/widgets/sp-attribute-widget.cpp
parentTemporily fix abiguous macros before later removal. (diff)
downloadinkscape-c317c1f79519f0ee961842ffb9feac4494af5377.tar.gz
inkscape-c317c1f79519f0ee961842ffb9feac4494af5377.zip
Fixed logic error confusing bitwise and with logical and.
Whitespace cleanup to make the issue easier to spot. (bzr r12311)
Diffstat (limited to 'src/widgets/sp-attribute-widget.cpp')
-rw-r--r--src/widgets/sp-attribute-widget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp
index 4196e62bf..fb7eb1420 100644
--- a/src/widgets/sp-attribute-widget.cpp
+++ b/src/widgets/sp-attribute-widget.cpp
@@ -259,7 +259,7 @@ static void sp_attribute_table_object_modified ( SPObject */*object*/,
guint flags,
SPAttributeTable *spat )
{
- if (flags && SP_OBJECT_MODIFIED_FLAG)
+ if (flags & SP_OBJECT_MODIFIED_FLAG)
{
std::vector<Glib::ustring> attributes = spat->get_attributes();
std::vector<Gtk::Entry *> entries = spat->get_entries();
@@ -270,7 +270,7 @@ static void sp_attribute_table_object_modified ( SPObject */*object*/,
text = e->get_text ();
if (val || !text.empty()) {
if (text != val) {
- /* We are different */
+ // We are different
spat->blocked = true;
e->set_text (val ? val : (const gchar *) "");
spat->blocked = false;