From 198d7c6cb9f892732037c017b448d3dd9e258a55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 29 Aug 2006 21:08:39 +0000 Subject: [PATCH] fixed crash in handling (bug #1545152) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/m_layout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 07b483b7d0..f8f5c34931 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -406,7 +406,8 @@ TAG_HANDLER_BEGIN(SUBSUP, "SUB,SUP") wxHtmlCell *c = cont->GetLastChild(); m_WParser->SetScriptMode(issub ? wxHTML_SCRIPT_SUB : wxHTML_SCRIPT_SUP); - m_WParser->SetScriptBaseline(oldbase + c->GetScriptBaseline()); + m_WParser->SetScriptBaseline( + oldbase + c ? c->GetScriptBaseline() : 0); // select smaller font m_WParser->SetFontSize(m_WParser->GetFontSize()-2); -- 2.45.2