summaryrefslogtreecommitdiff
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2017-02-13 23:23:11 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2017-02-14 01:34:32 +0000
commit3bec0fd8cd191c47ab94602470193ef56a05f444 (patch)
treee952d8e22f899256f352c9f4a65eaaf04721fc37 /starmath/source/rect.cxx
parent1cde2eb9d128c9b1b658b1380074461429ab2214 (diff)
starmath: This condition always holds
Change-Id: I6d47676dc71644766fdaea7033c53efa0bf9b549 Reviewed-on: https://gerrit.libreoffice.org/34212 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index 54ceb6eda4bb..511f4f68483b 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -480,11 +480,12 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode)
if (!HasAlignInfo())
CopyAlignInfo(rRect);
else if (rRect.HasAlignInfo())
- { nAlignT = std::min(GetAlignT(), rRect.GetAlignT());
+ {
+ assert(HasAlignInfo());
+ nAlignT = std::min(GetAlignT(), rRect.GetAlignT());
nAlignB = std::max(GetAlignB(), rRect.GetAlignB());
nHiAttrFence = std::min(GetHiAttrFence(), rRect.GetHiAttrFence());
nLoAttrFence = std::max(GetLoAttrFence(), rRect.GetLoAttrFence());
- OSL_ENSURE(HasAlignInfo(), "Sm: ooops...");
switch (eCopyMode)
{ case RectCopyMBL::This: