projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix CID 1498793: access the managed object of an empty smart pointer
[claws.git]
/
src
/
plugins
/
litehtml_viewer
/
litehtml
/
html_tag.cpp
diff --git
a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp
index f3a6b1b397cdbb8d5eedaa1c04e2aa3df3955029..a992d68a2111e8f746f44e54af801e2ac82bbe67 100644
(file)
--- a/
src/plugins/litehtml_viewer/litehtml/html_tag.cpp
+++ b/
src/plugins/litehtml_viewer/litehtml/html_tag.cpp
@@
-4269,7
+4269,10
@@
int litehtml::html_tag::render_box(int x, int y, int max_width, bool second_pass
{
for (const auto& fb : m_floats_left)
{
- fb.el->apply_relative_shift(fb.el->parent()->calc_width(m_pos.width));
+ if (fb.el)
+ {
+ fb.el->apply_relative_shift(fb.el->parent()->calc_width(m_pos.width));
+ }
}
}