% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% DestroyDrawInfo() deallocates memory associated with an DrawInfo
-% structure.
+% DestroyDrawInfo() deallocates memory associated with an DrawInfo structure.
%
% The format of the DestroyDrawInfo method is:
%
}
token=AcquireString(primitive);
extent=strlen(token)+MagickPathExtent;
- if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
- return(MagickFalse);
defsDepth=0;
symbolDepth=0;
status=MagickTrue;
case 'L':
{
if (LocaleCompare("line",keyword) == 0)
- primitive_type=LinePrimitive;
- else
- status=MagickFalse;
+ {
+ primitive_type=LinePrimitive;
+ break;
+ }
+ status=MagickFalse;
break;
}
case 'm':
if (LocaleCompare("stroke-dashoffset",keyword) == 0)
{
GetNextToken(q,&q,extent,token);
- graphic_context[n]->dash_offset=StringToDouble(token,
- &next_token);
+ graphic_context[n]->dash_offset=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
break;
GetNextToken(q,&q,extent,token);
linecap=ParseCommandOption(MagickLineCapOptions,MagickFalse,token);
if (linecap == -1)
- status=MagickFalse;
- else
- graphic_context[n]->linecap=(LineCap) linecap;
+ {
+ status=MagickFalse;
+ break;
+ }
+ graphic_context[n]->linecap=(LineCap) linecap;
break;
}
if (LocaleCompare("stroke-linejoin",keyword) == 0)
linejoin=ParseCommandOption(MagickLineJoinOptions,MagickFalse,
token);
if (linejoin == -1)
- status=MagickFalse;
- else
- graphic_context[n]->linejoin=(LineJoin) linejoin;
+ {
+ status=MagickFalse;
+ break;
+ }
+ graphic_context[n]->linejoin=(LineJoin) linejoin;
break;
}
if (LocaleCompare("stroke-miterlimit",keyword) == 0)
*node;
/*
- Take a node from within the MVG document, and duplicate it here.
+ Get a node from the MVG document, and "use" it here.
*/
GetNextToken(q,&q,extent,token);
node=GetNodeByURL(primitive,token);