Copy link to clipboard
Copied
1:
PMReal strokeWeight=0;
if(Style == border_style_ind_Plain)//no border
{
strokeWeight=0;
}
else if(Style == border_style_ind_Plain_Border)// border
{
strokeWeight=0.5;
}
// we apply the stroke to our item
InterfacePtr<ICommand> strokeSplineCmd (Utils<IGraphicAttributeUtils>()->CreateStrokeWeightCommand(strokeWeight,&splineItemList,kTrue,kTrue));
if(strokeSplineCmd==nil)
{
ASSERT_FAIL("Cannot create the command to stroke the spline?");
//break; -- Illegal break error???
}
Here , while applying stroke to the frame , I'm giving stroke wight "0" for the frames that don't need border
but when I check result the frames have wight "1" instead of "0"
Idea why?
2: In the same code I'm getting Illegal break error !!
Copy link to clipboard
Copied
break should be inside a loop. You probably copied code from somewhere without including the loop.
Copy link to clipboard
Copied
Sorry, Didn't notice.