Code

make sure undoing center moves emits modified signal and is thus noticed by the seltrans
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 22:34:38 +0000 (22:34 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 22:34:38 +0000 (22:34 +0000)
src/sp-item.cpp

index 22114cd5be9d368a6be8e8e6d9f270d81aaf2b9c..0f6ea38397b15621eca6b8e75c6a696e43a3e2fb 100644 (file)
@@ -499,6 +499,7 @@ sp_item_set(SPObject *object, unsigned key, gchar const *value)
             } else {
                 item->transform_center_x = 0;
             }
+            object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
             break;
         case SP_ATTR_TRANSFORM_CENTER_Y:
             if (value) {
@@ -506,6 +507,7 @@ sp_item_set(SPObject *object, unsigned key, gchar const *value)
             } else {
                 item->transform_center_y = 0;
             }
+            object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
             break;
         case SP_PROP_SYSTEM_LANGUAGE:
         case SP_PROP_REQUIRED_FEATURES: