Fix T98350: Crash when using clone tool + sequence.
When no image user is known the last used frame of the image is used to read a frame. When partial updating an image there is always an image user that would use a zerod out image user, meaning the frame number is set to 0 when using the clone tool. This fix syncs the frame with the last used frame of the image to ensure that the buffer exists. There is a bailout in the overlay_edit_uv.c.
This commit is contained in:
@@ -172,6 +172,11 @@ class ImageTileData : AbstractTileData {
|
||||
if (image_user != nullptr) {
|
||||
this->image_user = *image_user;
|
||||
}
|
||||
else {
|
||||
/* When no image user is given the lastframe of the image should be used. This reflect the
|
||||
* same logic when using a stencil image in the clone tool. */
|
||||
this->image_user.framenr = image->lastframe;
|
||||
}
|
||||
}
|
||||
|
||||
void init_data(TileNumber new_tile_number) override
|
||||
|
Reference in New Issue
Block a user