Hi Bao,
On 6/20/13 7:51 AM, Bao Niu wrote:
layers[0] vs. active_layer
automatically refer to the same object that referred to by active_layer? Or
it refers to something that only resides in memory and not being rendered
yet? That why I asked if the two are the same.
In this special case they're the same.
Depending on what you want to do with your code, the assumption that
there's only one layer might
be a bit shaky, so active_layer might be a better choice for robust
code. But of course, you may
have a worked out a complete different set of logic worked out to deal
with your layers.
Regards,
Steffen
_______________________________________________
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia