diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-01-26 19:48:14 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-01-26 19:48:14 +0000 |
| commit | b77cb6e0b3d66b08da54002678b4201f42f0e1a9 (patch) | |
| tree | 249761b39eda0e3e5c6412646fe6cbcf2e1d7519 /src/sp-item.cpp | |
| parent | conditionally (Gtk>=2.6) ellipsize status bar text (diff) | |
| download | inkscape-b77cb6e0b3d66b08da54002678b4201f42f0e1a9.tar.gz inkscape-b77cb6e0b3d66b08da54002678b4201f42f0e1a9.zip | |
reset center coords to zero when there's no attribute
(bzr r35)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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: |
