summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/source/node.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 62dd1f5894f7..f7dec45fd0cb 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2357,11 +2357,11 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
nX += aColWidth[j] + nHorDist;
}
- Point aPos, aDelta;
- SmRect aLineRect;
SmRect::operator = (SmRect());
for (i = 0; i < nNumRows; i++)
- { aLineRect = SmRect();
+ {
+ Point aPos;
+ SmRect aLineRect;
for (j = 0; j < nNumCols; j++)
{ SmNode *pTmpNode = GetSubNode(i * nNumCols + j);
assert(pTmpNode);
@@ -2403,8 +2403,8 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
aPos.Y() += nVerDist;
// move 'aLineRect' and rectangles in that line to final position
- aDelta.X() = 0; // since horizontal alignment is already done
- aDelta.Y() = aPos.Y() - aLineRect.GetTop();
+ Point aDelta(0, // since horizontal alignment is already done
+ aPos.Y() - aLineRect.GetTop());
aLineRect.Move(aDelta);
for (j = 0; j < nNumCols; j++)
if (nullptr != (pNode = GetSubNode(i * nNumCols + j)))