From: buliabyak Date: Thu, 26 Jan 2006 19:48:14 +0000 (+0000) Subject: reset center coords to zero when there's no attribute X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39f7288bea4237ed5f88ca99a95f938f13de46c6;p=inkscape.git reset center coords to zero when there's no attribute --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 7339160c7..6caa46f30 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -455,11 +455,15 @@ sp_item_set(SPObject *object, unsigned key, gchar const *value) case SP_ATTR_TRANSFORM_CENTER_X: if (value) { item->transform_center_x = g_strtod(value, NULL); + } else { + item->transform_center_x = 0; } break; case SP_ATTR_TRANSFORM_CENTER_Y: if (value) { item->transform_center_y = g_strtod(value, NULL); + } else { + item->transform_center_y = 0; } break; default: