Skip to content

Commit

Permalink
Fix tool fill button activation
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Apr 27, 2023
1 parent 5ddf06e commit 695eb5c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/control/Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3141,11 +3141,9 @@ void Control::setFill(bool fill) {
}

if (toolHandler->getToolType() == TOOL_PEN) {
fireActionSelected(GROUP_PEN_FILL, fill ? ACTION_TOOL_PEN_FILL : ACTION_NONE);
this->toolHandler->setPenFillEnabled(fill, false);
this->toolHandler->setPenFillEnabled(fill, true);
} else if (toolHandler->getToolType() == TOOL_HIGHLIGHTER) {
fireActionSelected(GROUP_HIGHLIGHTER_FILL, fill ? ACTION_TOOL_HIGHLIGHTER_FILL : ACTION_NONE);
this->toolHandler->setHighlighterFillEnabled(fill, false);
this->toolHandler->setHighlighterFillEnabled(fill, true);
}
}

Expand Down

1 comment on commit 695eb5c

@reza45189
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

راز فواره هرون #

Please sign in to comment.