diff options
-rw-r--r-- | starmath/source/node.cxx | 1 | ||||
-rw-r--r-- | starmath/source/rect.cxx | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index fcdcbbdb2e07..eab5ff5ac1a7 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2064,7 +2064,6 @@ void SmTextNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell, i SetRectHorAlign( RectHorAlign::Left ); maText = GetToken().aText; - assert(!maText.isEmpty()); GetFont() = rFormat.GetFont(GetFontDesc()); if (IsItalic( GetFont() )) diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 113cf4998a65..ab32022aac2a 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -38,7 +38,6 @@ bool SmGetGlyphBoundRect(const vcl::RenderContext &rDev, // basically the same as 'GetTextBoundRect' (in class 'OutputDevice') // but with a string as argument. { - assert(!rText.isEmpty()); // handle special case first if (rText.isEmpty()) { @@ -184,7 +183,6 @@ SmRect::SmRect(const OutputDevice &rDev, const SmFormat *pFormat, : aTopLeft(0, 0) , aSize(rDev.GetTextWidth(rText), rDev.GetTextHeight()) { - assert(!rText.isEmpty()); const FontMetric aFM (rDev.GetFontMetric()); bool bIsMath = aFM.GetFamilyName().equalsIgnoreAsciiCase( FONTNAME_MATH ); bool bAllowSmaller = bIsMath && !SmIsMathAlpha(rText); |