commit 76dd15b024ec646d6b091f6b874c6c2d761ac5fb
parent dae174542ee5a97c297a0e2491d3820fa0c6ff4c
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, 8 insertions(+), 1 deletion(-)
diff --git a/AUTHORS b/AUTHORS
@@ -330,10 +330,13 @@ contributors (in addition to the above; based on Changelog)
Alexander Lyons Harkness
Jakub KiciĆski
Jean Delvare
+ Raphael Michel
Damian Poddebniak
Alvar Penning
David Fletcher
Orivej Desh
Steve Randall
Ramin Yaghoubzadeh Torky
-
+ Manuel Stoeckl
+ David Fletcher
+ Frank Mueller
diff --git a/src/gtk/authors.h b/src/gtk/authors.h
@@ -226,6 +226,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();