talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 36810ba6748db323596b0a0af7b6cfba20f8f80f
parent 2f0c7dd54f24acc9bccd741c0d1c3c543d8003bd
Author: paul <paul@claws-mail.org>
Date:   Tue,  3 Aug 2021 12:10:01 +0100

fix bug 4312, 'litehtml plugin loops (hangup)'

patch by Frank Mueller

(cherry picked from commit 00d0212ccbcaa608a91c5f3a50639fed98f654c6)

Diffstat:
Msrc/plugins/litehtml_viewer/litehtml/html_tag.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp @@ -4014,6 +4014,9 @@ int litehtml::html_tag::render_box(int x, int y, int max_width, bool second_pass { int parent_width = max_width; + if (max_width <= 0) + return 0; + calc_outlines(parent_width); m_pos.clear();