X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/848c4eb27bacb870d97385560124970b84ee4d72..c9f00f2fce9cacd46ae25417d6c3a5add7640320:/src/html/htmlcell.cpp?ds=inline diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 8ea2197716..9a8a34aeb3 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -729,7 +729,7 @@ void wxHtmlContainerCell::Layout(int w) } while (nextCell && !nextCell->IsLinebreakAllowed()); } - // force new line if occured: + // force new line if occurred: if ((cell == NULL) || (xpos + nextWordWidth > s_width && cell->IsLinebreakAllowed())) { @@ -1237,7 +1237,8 @@ void wxHtmlContainerCell::RemoveExtraSpacing(bool top, bool bottom) cont = (wxHtmlContainerCell*)c; if ( IsEmptyContainer(cont) ) { - cont->SetIndent(0, wxHTML_INDENT_VERTICAL); } + cont->SetIndent(0, wxHTML_INDENT_VERTICAL); + } else { cont->RemoveExtraSpacing(false, true);