summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLSubSup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/RenderMathMLSubSup.cpp')
-rw-r--r--WebCore/mathml/RenderMathMLSubSup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/mathml/RenderMathMLSubSup.cpp b/WebCore/mathml/RenderMathMLSubSup.cpp
index 52ac0e3..4cda36f 100644
--- a/WebCore/mathml/RenderMathMLSubSup.cpp
+++ b/WebCore/mathml/RenderMathMLSubSup.cpp
@@ -162,7 +162,7 @@ void RenderMathMLSubSup::layout()
maxHeight = height;
current = current->nextSibling();
}
- int heightDiff = (m_scripts->offsetHeight() - maxHeight) / 2;
+ int heightDiff = m_scripts ? (m_scripts->offsetHeight() - maxHeight) / 2 : 0;
if (heightDiff < 0)
heightDiff = 0;
base->style()->setMarginTop(Length(heightDiff, Fixed));