On 13 Jun 1999, Lars R.Clausen wrote:
> >> Other basic layer-specific features I'd like to see are:
> >> * the ability to hide entires layers for display and for EPS export
> >  Possible.
> 
> Except that the bounding box isn't correctly calculated for EPS... I
> thought this patch would help, but it doesn't seem so.  What did I miss?
> 
> Index: lib/diagramdata.c
> ===================================================================
> RCS file: /cvs/gnome/dia/lib/diagramdata.c,v
> retrieving revision 1.6
> diff -c -b -B -r1.6 diagramdata.c
> *** lib/diagramdata.c   1999/05/18 20:03:35     1.6
> --- lib/diagramdata.c   1999/06/13 18:12:25
> ***************
> *** 225,231 ****
> --- 225,233 ----
>     new_extents = layer->extents;
>     for (i=1;i<data->layers->len;i++) {
>       layer = (Layer *) g_ptr_array_index(data->layers, i);
> +     if (layer->visible) {
>         rectangle_union(&new_extents, &layer->extents);
> +     }
>     }
>   
>     changed =  ( (new_extents.left != extents->left) ||

I'll look into this later, i'm doing undo now. Remind me later if i
forget it.

> >> * the ability to change an object's layer without having to cut & paste
> >  I can dig that. It's easy to implement to.
> 
> Is it?  What happens to connections that object might have?  Brutally cut?  
> Unless both objects are transferred at the same time, I suppose.

Yes. There is a function object_copy_list() that makes a copy of a list
of objects, and breaks all external connections, but keeps the internal.

/ Alex

Reply via email to