Skip to content

Commit

Permalink
Fix setting line style for selection
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandlo committed Apr 27, 2023
1 parent 34cadef commit a59b17d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/core/control/Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3152,9 +3152,8 @@ void Control::setLineStyle(const string& style) {

if (sel) {
undoRedo->addUndoAction(sel->setLineStyle(stl));
} else {
this->toolHandler->setLineStyle(stl);
}
this->toolHandler->setLineStyle(stl);
}

void Control::setToolSize(ToolSize size) {
Expand Down
3 changes: 2 additions & 1 deletion src/core/control/ToolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ void ToolHandler::setButtonSize(ToolSize size, Button button) {
}

void ToolHandler::setLineStyle(const LineStyle& style) {
this->tools[TOOL_PEN - TOOL_PEN]->setLineStyle(style);
Tool* tool = this->toolbarSelectedTool;
tool->setLineStyle(style);
this->stateChangeListener->toolLineStyleChanged();
}

Expand Down

0 comments on commit a59b17d

Please sign in to comment.