mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 03:29:58 +02:00
[poincare] Fix Exp SquarePower SquarePower
Change-Id: I2c378728fe99096497d396dd6ae526867326ace5
This commit is contained in:
@@ -254,7 +254,6 @@ void VerticalOffsetLayout::privateAddSibling(ExpressionLayoutCursor * cursor, Ex
|
||||
VerticalOffsetLayout * verticalOffsetSibling = static_cast<VerticalOffsetLayout *>(sibling);
|
||||
if (verticalOffsetSibling->type() == Type::Superscript) {
|
||||
assert(m_parent->isHorizontal());
|
||||
|
||||
// Add the Left parenthesis
|
||||
int indexInParent = m_parent->indexOfChild(this);
|
||||
int leftParenthesisIndex = indexInParent;
|
||||
@@ -266,7 +265,7 @@ void VerticalOffsetLayout::privateAddSibling(ExpressionLayoutCursor * cursor, Ex
|
||||
leftParenthesisIndex--;
|
||||
}
|
||||
m_parent->addChildAtIndex(leftParenthesis, leftParenthesisIndex);
|
||||
indexInParent++;
|
||||
indexInParent = m_parent->indexOfChild(this);
|
||||
|
||||
// Add the Right parenthesis
|
||||
RightParenthesisLayout * rightParenthesis = new RightParenthesisLayout();
|
||||
|
||||
Reference in New Issue
Block a user