Code

it's not a good idea to change key of arenaitem in the middle of an update; not only...
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 23 Sep 2008 04:41:02 +0000 (04:41 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 23 Sep 2008 04:41:02 +0000 (04:41 +0000)
src/sp-shape.cpp

index fbb9a60f6f1f42dc68aeabed144b60220faeb634..6aec13bc97d76cde595f5ad0ce7882fe56bfc984 100644 (file)
@@ -288,16 +288,6 @@ sp_shape_update (SPObject *object, SPCtx *ctx, unsigned int flags)
         /* Dimension marker views */
         for (SPItemView *v = item->display; v != NULL; v = v->next) {
 
-            if (!v->arenaitem->key) {
-                /* Get enough keys for all, start, mid and end marker types,
-                ** and set this view's arenaitem key to the first of these keys.
-                */
-                NR_ARENA_ITEM_SET_KEY (
-                    v->arenaitem,
-                    sp_item_display_key_new (SP_MARKER_LOC_QTY)
-                    );
-            }
-
             for (int i = 0 ; i < SP_MARKER_LOC_QTY ; i++) {
                 if (shape->marker[i]) {
                     sp_marker_show_dimension ((SPMarker *) shape->marker[i],