1
0
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:
krepa098 2015-02-12 09:02:49 +01:00
parent 0b56916b9f
commit 7d2f515df9

View File

@ -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())