mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix bug copying layers below the Background layer (fix #716)
This commit is contained in:
parent
210d9c7591
commit
8572bb8ffc
@ -63,13 +63,13 @@ static DocumentRange drop_range_op(
|
||||
for (LayerIndex i = from.layerBegin(); i <= from.layerEnd(); ++i)
|
||||
if (sprite->indexToLayer(i)->isBackground())
|
||||
throw std::runtime_error("The background layer cannot be moved");
|
||||
}
|
||||
|
||||
// Before background
|
||||
if (place == kDocumentRangeBefore) {
|
||||
Layer* background = sprite->indexToLayer(to.layerBegin());
|
||||
if (background && background->isBackground())
|
||||
throw std::runtime_error("You cannot move something below the background layer");
|
||||
}
|
||||
// Before background
|
||||
if (place == kDocumentRangeBefore) {
|
||||
Layer* background = sprite->indexToLayer(to.layerBegin());
|
||||
if (background && background->isBackground())
|
||||
throw std::runtime_error("You cannot move or copy something below the background layer");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user