commit 00d0212ccbcaa608a91c5f3a50639fed98f654c6
parent 749416c7fb89ac69d002dd0e328a59ca0030105e
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
Diffstat:
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/AUTHORS b/AUTHORS
@@ -338,3 +338,4 @@ contributors (in addition to the above; based on Changelog)
Ramin Yaghoubzadeh Torky
Manuel Stoeckl
David Fletcher
+ Frank Mueller
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
@@ -228,6 +228,7 @@ static char *CONTRIBS_LIST[] = {
"Neill Miller",
"Suzuki Mio",
"Alex S Moore",
+"Frank Mueller",
"NAKAGAWA",
"Yuuki NINOMIYA",
"Satoshi Nagayasu",
diff --git a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
@@ -3920,6 +3920,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();