coding style
This commit is contained in:
parent
64c8b0c00c
commit
c28363f9fb
@ -435,7 +435,7 @@ typedef struct NSVGparser
|
||||
NSVGpath* plist;
|
||||
NSVGimage* image;
|
||||
NSVGgradientData* gradients;
|
||||
NSVGshape *shapesTail;
|
||||
NSVGshape* shapesTail;
|
||||
float viewMinx, viewMiny, viewWidth, viewHeight;
|
||||
int alignX, alignY, alignType;
|
||||
float dpi;
|
||||
@ -998,11 +998,10 @@ static void nsvg__addShape(NSVGparser* p)
|
||||
shape->flags = (attr->visible ? NSVG_FLAGS_VISIBLE : 0x00);
|
||||
|
||||
// Add to tail
|
||||
if (NULL == p->image->shapes) {
|
||||
if (p->image->shapes == NULL)
|
||||
p->image->shapes = shape;
|
||||
} else {
|
||||
else
|
||||
p->shapesTail->next = shape;
|
||||
}
|
||||
p->shapesTail = shape;
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user