Merge pull request #579 from shun-iwasawa/fix_brush_undo_crash
Fix crash on undo brush tool
This commit is contained in:
commit
e7501e0aea
1 changed files with 2 additions and 1 deletions
|
@ -1067,7 +1067,8 @@ void ToolUtils::UndoPencil::undo() const {
|
|||
if (!stroke) return;
|
||||
image->deleteStroke(stroke);
|
||||
TSelection *selection = app->getCurrentSelection()->getSelection();
|
||||
if (StrokeSelection *strokeSelection = (StrokeSelection *)selection)
|
||||
StrokeSelection *strokeSelection = dynamic_cast<StrokeSelection *>(selection);
|
||||
if (strokeSelection)
|
||||
strokeSelection->selectNone();
|
||||
|
||||
UINT size = m_fillInformation->size();
|
||||
|
|
Loading…
Reference in a new issue