diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2013-04-29 00:51:29 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2013-04-29 00:51:29 +0000 |
| commit | c317c1f79519f0ee961842ffb9feac4494af5377 (patch) | |
| tree | 28187bf8ccee447689430f1c0243700e0565e958 /src/widgets/sp-attribute-widget.cpp | |
| parent | Temporily fix abiguous macros before later removal. (diff) | |
| download | inkscape-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.cpp | 4 |
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; |
