X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1e5e881345b78de4184f39ed6d115f796ec8a9f..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/html/htmlcell.cpp?ds=sidebyside diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index 89da480870..0ca4bb2524 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -440,7 +440,7 @@ void wxHtmlContainerCell::Layout(int w) int step = (s_width - xpos); if (step < 0) step = 0; xcnt--; - while (line != cell) { + if (xcnt > 0) while (line != cell) { line -> SetPos(line -> GetPosX() + s_indent + (counter++ * step / xcnt), ypos + line -> GetPosY());