summaryrefslogtreecommitdiff
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index 33bf42110eb0..ba7313ad25e0 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -172,16 +172,9 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat,
// get GlyphBoundRect
Rectangle aGlyphRect;
-#if OSL_DEBUG_LEVEL > 1
- bool bSuccess =
-#endif
- SmGetGlyphBoundRect(rDev, rText, aGlyphRect);
-#if OSL_DEBUG_LEVEL > 1
+ bool bSuccess = SmGetGlyphBoundRect(rDev, rText, aGlyphRect);
if (!bSuccess)
- {
- OSL_FAIL( "Sm : Ooops... (fehlt evtl. der Font?)");
- }
-#endif
+ SAL_WARN("starmath", "Ooops... (Font missing?)");
nItalicLeftSpace = GetLeft() - aGlyphRect.Left() + nBorderWidth;
nItalicRightSpace = aGlyphRect.Right() - GetRight() + nBorderWidth;
@@ -335,7 +328,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos,
+ GetItalicLeftSpace();
break;
default :
- OSL_FAIL("Sm: unknown case");
+ SAL_WARN("starmath", "unknown case");
}
// check if horizontal position is already set
@@ -372,7 +365,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos,
aPos.Y() += rRect.GetLoAttrFence() - GetTop();
break;
default :
- OSL_FAIL("Sm: unknown case");
+ SAL_WARN("starmath", "unknown case");
}
// check if vertical position is already set
@@ -389,7 +382,7 @@ const Point SmRect::AlignTo(const SmRect &rRect, RectPos ePos,
aPos.X() += rRect.GetItalicRight() - GetItalicRight();
break;
default :
- OSL_FAIL("Sm: unknown case");
+ SAL_WARN("starmath", "unknown case");
}
return aPos;
@@ -480,7 +473,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode)
CopyMBL(rRect);
break;
default :
- OSL_FAIL("Sm: unknown case");
+ SAL_WARN("starmath", "unknown case");
}
}