Skips creating groups for groups that have no children

- reverted float scanning, looking for an alternative
This commit is contained in:
Curtis Hard
2016-12-05 21:38:09 +00:00
parent 952d4cfee1
commit 753242a2db
+7
View File
@@ -780,6 +780,13 @@
case IJSVGNodeTypeFont:
case IJSVGNodeTypeMask:
case IJSVGNodeTypeGroup: {
// skip blank groups
if(aType == IJSVGNodeTypeGroup && element.childCount == 0) {
break;
}
// create a new group
IJSVGGroup * group = [[[IJSVGGroup alloc] init] autorelease];
group.type = aType;
group.name = subName;