Kaydet (Commit) 6f1df6dc authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

starmath: Assert that SmAlignNode must have only one child

Change-Id: Ia59e453040b121c27a1326ee4bdc8a7ccaa4074d
Reviewed-on: https://gerrit.libreoffice.org/23588Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst e88ba02a
...@@ -1725,9 +1725,10 @@ void SmOperNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) ...@@ -1725,9 +1725,10 @@ void SmOperNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
void SmAlignNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) void SmAlignNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
// set alignment within the entire subtree (including current node) // set alignment within the entire subtree (including current node)
{ {
OSL_ENSURE(GetNumSubNodes() > 0, "Sm: missing subnode"); assert(GetNumSubNodes() == 1);
SmNode *pNode = GetSubNode(0); SmNode *pNode = GetSubNode(0);
assert(pNode);
RectHorAlign eHorAlign = RectHorAlign::Center; RectHorAlign eHorAlign = RectHorAlign::Center;
switch (GetToken().eType) switch (GetToken().eType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment