summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/rect.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index ebacd2cc27b7..08168e4f944a 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -389,14 +389,14 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos,
}
-SmRect & SmRect::Union(const SmRect &rRect)
+void SmRect::Union(const SmRect &rRect)
// rectangle union of current one with 'rRect'. The result is to be the
// smallest rectangles that covers the space of both rectangles.
// (empty rectangles cover no space)
//! Italic correction is NOT taken into account here!
{
if (rRect.IsEmpty())
- return *this;
+ return;
long nL = rRect.GetLeft(),
nR = rRect.GetRight(),
@@ -427,8 +427,6 @@ SmRect & SmRect::Union(const SmRect &rRect)
SetBottom(nB);
nGlyphTop = nGT;
nGlyphBottom = nGB;
-
- return *this;
}
@@ -481,7 +479,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode)
}
-SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode,
+void SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode,
long nNewAlignM)
// as 'ExtendBy' but sets AlignM value to 'nNewAlignM'.
// (this version will be used in 'SmBinVerNode' to provide means to
@@ -492,8 +490,6 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode,
ExtendBy(rRect, eCopyMode);
nAlignM = nNewAlignM;
-
- return *this;
}