
12 Mar
2014
12 Mar
'14
2:36 p.m.
On Wed, 2014-03-12 at 15:02 +0100, Krzysztof KosiĆski wrote:
I think that treating switches as groups is wrong (they should be transparently treated as the object they evaluate to), but this needs more changes than just disabling ungrouping. I'll fix this soon.
I was thinking some more about this issue and perhaps in the future release we need to stop SP_IS_GROUP from seeing switches as groups but instead have a SP_IS_CONTAINER or similar. Because there will be instances in the code where we need to know that an element is any container and we shouldn't have to remember to say IS_SWITCH or IS_SVG or IS_GROUP etc etc.
But there's room for not treating everything as a group too. So have different calls for the two intentions.
Martin,