From 2c16c66d8ff368cad8448e31407f2d04686e79af Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Sat, 7 May 2022 18:41:07 +0200 Subject: [PATCH] Fix CID 1498793: access the managed object of an empty smart pointer --- 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 index f3a6b1b39..a992d68a2 100644 --- 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)); + } } } -- 2.11.4.GIT