commit 2c16c66d8ff368cad8448e31407f2d04686e79af parent 107cee427a9e56f6c79fc472a2959445f0673f77 Author: Ricardo Mones <ricardo@mones.org> Date: Sat, 7 May 2022 18:41:07 +0200 Fix CID 1498793: access the managed object of an empty smart pointer Diffstat:
| M | src/plugins/litehtml_viewer/litehtml/html_tag.cpp | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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)); + } } }