Commit 3c6b06e3 authored by Clément Fauconnier's avatar Clément Fauconnier

fixed a bug where preview circles were not removed when changing stylus tool

parent 7a9b8969
...@@ -2927,6 +2927,8 @@ void UBGraphicsScene::setToolCursor(int tool) ...@@ -2927,6 +2927,8 @@ void UBGraphicsScene::setToolCursor(int tool)
tool == (int)UBStylusTool::Text || tool == (int)UBStylusTool::Text ||
tool == (int)UBStylusTool::Play) { tool == (int)UBStylusTool::Play) {
deselectAllItems(); deselectAllItems();
hideMarkerCircle();
hidePenCircle();
} }
if (mCurrentStroke && mCurrentStroke->polygons().empty()){ if (mCurrentStroke && mCurrentStroke->polygons().empty()){
......
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