git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40919
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxHtmlCell *c = cont->GetLastChild();
m_WParser->SetScriptMode(issub ? wxHTML_SCRIPT_SUB : wxHTML_SCRIPT_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);
// select smaller font
m_WParser->SetFontSize(m_WParser->GetFontSize()-2);