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:
parent
6a495cbc88
commit
31818b9ba8
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[Component]
|
||||
Author=
|
||||
Alpha=1
|
1
gb.form.htmlview/src/gb.form.htmlview.component
Symbolic link
1
gb.form.htmlview/src/gb.form.htmlview.component
Symbolic link
|
@ -0,0 +1 @@
|
|||
gb.form.htmlview/.component
|
Loading…
Reference in a new issue