Skip to content

Commit

Permalink
pencil2d#1792 Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldgenerator7 committed Oct 6, 2023
1 parent 150b253 commit 6b9d876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/toolbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ void ToolBoxWidget::onSelectionChanged(){
BaseTool* currentTool = editor()->tools()->currentTool();
if (currentTool->type() == SELECT)
{
if (!((SelectTool)currentTool).selectChanging())
SelectTool* selectTool = (SelectTool*) currentTool;
if (!selectTool->selectChanging())
{
moveOn();
}
Expand Down
1 change: 1 addition & 0 deletions core_lib/src/tool/selecttool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ void SelectTool::pointerReleaseEvent(PointerEvent* event)

mStartMoveMode = MoveMode::NONE;
mSelectionRect = mEditor->select()->mapToSelection(mEditor->select()->mySelectionRect()).boundingRect();
editor()->select()->setSelection(mSelectionRect);

mScribbleArea->updateToolCursor();
mScribbleArea->updateFrame();
Expand Down

0 comments on commit 6b9d876

Please sign in to comment.