Kaydet (Commit) fdbf7aa4 authored tarafından Takeshi Abe's avatar Takeshi Abe

starmath: Assert a precondition of DoBlank()

Change-Id: I9e2d7dc5d209559b9cacb4315610431ebd1df717
Reviewed-on: https://gerrit.libreoffice.org/35419Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTakeshi Abe <tabe@fixedpoint.jp>
üst 8fd7b493
......@@ -1256,14 +1256,15 @@ void SmParser::DoPower()
SmBlankNode *SmParser::DoBlank()
{
OSL_ENSURE(TokenInGroup(TG::Blank), "Sm : wrong token");
assert(TokenInGroup(TG::Blank));
std::unique_ptr<SmBlankNode> pBlankNode(new SmBlankNode(m_aCurToken));
while (TokenInGroup(TG::Blank))
do
{
pBlankNode->IncreaseBy(m_aCurToken);
NextToken();
}
while (TokenInGroup(TG::Blank));
// Ignore trailing spaces, if corresponding option is set
if ( m_aCurToken.eType == TNEWLINE ||
......
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