mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 10:48:11 +08:00
Fix layer deletion bugs when tools are in use (#684)
* Added test case of layer delete bug * Fixed crash in `PenTool` Updated the document `MessageHandler` to cancel all active tools if the layer is deleted. This prevents the tools from crashing due to the layer being pulled from under them. * Moved Abort into pre-graphene DeleteLayer message * Renamed test case for clarity * Moved tool crash tests to the `tools` module * Added `test-case` to the dev dependencies * Added crash test case for all tools * Ran cargo fmt Co-authored-by: otdavies <oliver@psyfer.io> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
otdavies
Keavon Chambers
parent
5016abd971
commit
91219cbe64
@@ -32,3 +32,4 @@ package = "graphite-graphene"
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.8.4"
|
||||
test-case = "2.1"
|
||||
|
||||
Reference in New Issue
Block a user