Minor bugfixing

This commit is contained in:
Jakub Melka
2020-04-13 18:02:49 +02:00
parent 2ff04eb6b5
commit 9b71031ec3
4 changed files with 50 additions and 14 deletions

View File

@ -397,6 +397,14 @@ void PDFDrawWidgetBase<BaseWidget>::updateCursor()
cursor = toolManager->getCursor();
}
if (!cursor)
{
if (PDFWidgetAnnotationManager* annotationManager = m_widget->getDrawWidgetProxy()->getAnnotationManager())
{
cursor = annotationManager->getCursor();
}
}
if (!cursor)
{
switch (m_mouseOperation)
@ -436,6 +444,7 @@ void PDFDrawWidgetBase<BaseWidget>::wheelEvent(QWheelEvent* event)
toolManager->wheelEvent(this, event);
if (event->isAccepted())
{
updateCursor();
return;
}
}