Commit 3171da0d authored by Craig Watson's avatar Craig Watson

Clean-up after last commit (c65457e9)

parent c65457e9
...@@ -1691,14 +1691,8 @@ void UBBoardView::setToolCursor (int tool) ...@@ -1691,14 +1691,8 @@ void UBBoardView::setToolCursor (int tool)
controlViewport->setCursor (UBResources::resources ()->penCursor); controlViewport->setCursor (UBResources::resources ()->penCursor);
break; break;
case UBStylusTool::Eraser: case UBStylusTool::Eraser:
{
controlViewport->setCursor (UBResources::resources ()->eraserCursor); controlViewport->setCursor (UBResources::resources ()->eraserCursor);
UBStylusTool::Enum currentTool = (UBStylusTool::Enum)UBDrawingController::drawingController()->stylusTool();
if (currentTool != UBStylusTool::Eraser)
// Avoid hiding the eraser after a click with the eraser
scene()->hideEraser();
break; break;
}
case UBStylusTool::Marker: case UBStylusTool::Marker:
controlViewport->setCursor (UBResources::resources ()->markerCursor); controlViewport->setCursor (UBResources::resources ()->markerCursor);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment