fpvectorial-svg: Fixes block reading, which was broken after a change in ReadEntityFromNode

git-svn-id: trunk@42311 -
This commit is contained in:
sekelsenmat 2013-08-04 10:38:39 +00:00
parent 22c74b140c
commit 9342b8538f

View File

@ -1105,6 +1105,7 @@ var
i: Integer;
lCurNode, lCurSubNode: TDOMNode;
lBrushEntity: TvEntityWithPenAndBrush;
lCurEntity: TvEntity;
begin
lCurNode := ANode.FirstChild;
while Assigned(lCurNode) do
@ -1186,7 +1187,9 @@ begin
AData.AddEntity(lBlock);
AData.SetCurrentLayer(lBlock);
//
ReadEntityFromNode(lCurNode, AData, ADoc);
lCurEntity := ReadEntityFromNode(lCurNode, AData, ADoc);
if lCurEntity <> nil then
AData.AddEntity(lCurEntity);
//
AData.SetCurrentLayer(lPreviousLayer);
end;