fpvectorial: Fix incorrect exception that paths must begin with a MoveTo command.

git-svn-id: trunk@51109 -
This commit is contained in:
wp 2016-01-01 23:41:11 +00:00
parent bc906c5514
commit 933d42cfa1
2 changed files with 4 additions and 4 deletions

View File

@ -529,12 +529,12 @@ begin
begin
curSegment := TPathSegment(APath.Next);
if (i = 0) and (curSegment.SegmentType <> stMoveTo) then
raise Exception.Create('Path must start with a "MoveTo" command');
case curSegment.SegmentType of
stMoveTo:
begin
if i <> 0 then
raise Exception.Create('Path must start with a "MoveTo" command');
// Store current length of points array as polygon start index
if numPolygons >= Length(PolygonStartIndexes) then
SetLength(PolygonstartIndexes, Length(PolygonStartIndexes) + POINT_BUFFER);