Fix issue #871 for html causing crashes

This commit is contained in:
Greg Ercolano 2023-12-18 11:32:34 -08:00
parent 46b2f50750
commit 1e6ac9c9bb
1 changed files with 2 additions and 2 deletions

View File

@ -1518,7 +1518,7 @@ void Fl_Help_View::format() {
if (buf.cmp("LI")) { if (buf.cmp("LI")) {
block->ol = 0; block->ol = 0;
if (OL_num.back()>=0) { if (OL_num.size() && OL_num.back()>=0) {
block->ol = 1; block->ol = 1;
block->ol_num = (int)OL_num.back(); block->ol_num = (int)OL_num.back();
int nnum = OL_num.pop_back() + 1; int nnum = OL_num.pop_back() + 1;
@ -1554,7 +1554,7 @@ void Fl_Help_View::format() {
if (buf.cmp("/OL") || if (buf.cmp("/OL") ||
buf.cmp("/UL")) { buf.cmp("/UL")) {
OL_num.pop_back(); if (OL_num.size()) OL_num.pop_back();
} }
if (buf.cmp("/UL") || if (buf.cmp("/UL") ||