mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-24 01:59:43 +02:00
fpvectorial: Adds support for mathml without enclosing row
git-svn-id: trunk@46929 -
This commit is contained in:
parent
7ac6d9a919
commit
fbf7ab1622
@ -308,8 +308,13 @@ begin
|
||||
ReadFormulaFromNodeChildren(lCurNode, lPage, lFormula);
|
||||
lPage.AddEntity(lFormula);
|
||||
end
|
||||
else
|
||||
raise Exception.Create(Format('[TvMathMLVectorialReader.ReadFromStream] Expected mrow or mstack, got %s', [lStr]));
|
||||
else // If it is neither a mrow nor a mstack, consider everything as being in a row layout
|
||||
begin
|
||||
lFormula := TvFormula.Create(lPage);
|
||||
ReadFormulaFromNodeChildren(lFirstLayer, lPage, lFormula);
|
||||
lPage.AddEntity(lFormula);
|
||||
Exit;
|
||||
end;
|
||||
|
||||
lCurNode := lCurNode.NextSibling;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user