HtmlView: Mouse events do not crash a void view anymore.

[GB.FORM.HTMLVIEW]
* BUG: HtmlView: Mouse events do not crash a void view anymore.
This commit is contained in:
gambas 2021-11-14 22:07:54 +01:00
parent 6a495cbc88
commit 31818b9ba8
2 changed files with 6 additions and 4 deletions

View file

@ -923,6 +923,9 @@ void html_document::on_mouse(int event, int x, int y)
litehtml::position::vector redraw_boxes;
bool ret;
if (!m_html)
return;
switch (event)
{
case MOUSE_DOWN:
@ -965,7 +968,8 @@ void html_document::on_mouse(int event, int x, int y)
void html_document::on_media_change()
{
m_html->media_changed();
if (m_html)
m_html->media_changed();
}
int html_document::find_anchor(const litehtml::tstring& anchor)

View file

@ -1,3 +0,0 @@
[Component]
Author=
Alpha=1

View file

@ -0,0 +1 @@
gb.form.htmlview/.component