mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix crash in Text::hoverMoveEvent
This commit is contained in:
parent
0b56916b9f
commit
7d2f515df9
@ -213,6 +213,9 @@ void Text::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
|
|
||||||
void Text::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
|
void Text::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
|
||||||
{
|
{
|
||||||
|
if(!doc)
|
||||||
|
return;
|
||||||
|
|
||||||
QString anchor = doc->documentLayout()->anchorAt(event->pos());
|
QString anchor = doc->documentLayout()->anchorAt(event->pos());
|
||||||
|
|
||||||
if(!anchor.isEmpty())
|
if(!anchor.isEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user