fixed a crash on desktop mode

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 8429a9706c
commit 8a9edb36cc
  1. 5
      src/domain/UBGraphicsScene.cpp

@ -828,11 +828,16 @@ void UBGraphicsScene::drawPenCircle(const QPointF &pPoint)
mPenCircle->setRect(QRectF(pPoint.x() - penRadius, pPoint.y() - penRadius,
penDiameter, penDiameter));
if (controlView())
if (controlView()->viewport())
controlView()->viewport()->setCursor(QCursor (Qt::BlankCursor));
mPenCircle->show();
}
else
{
if (controlView())
if (controlView()->viewport())
controlView()->viewport()->setCursor(UBResources::resources()->penCursor);
}

Loading…
Cancel
Save