mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Catch exception if we cannot change the selection transparent color
We have a memory crash dump where wasn't possible to change the selection transparent color because the data recovery thread was creating the sprite backup.
This commit is contained in:
parent
847fc58a01
commit
2eb757995d
@ -551,8 +551,13 @@ void MovingPixelsState::setTransparentColor(bool opaque, const app::Color& color
|
|||||||
Layer* layer = m_editor->layer();
|
Layer* layer = m_editor->layer();
|
||||||
ASSERT(layer);
|
ASSERT(layer);
|
||||||
|
|
||||||
m_pixelsMovement->setMaskColor(
|
try {
|
||||||
opaque, color_utils::color_for_target_mask(color, ColorTarget(layer)));
|
m_pixelsMovement->setMaskColor(
|
||||||
|
opaque, color_utils::color_for_target_mask(color, ColorTarget(layer)));
|
||||||
|
}
|
||||||
|
catch (const LockedDocumentException& ex) {
|
||||||
|
Console::showException(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MovingPixelsState::dropPixels()
|
void MovingPixelsState::dropPixels()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user