mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Avoid trying to convert a null surface
This commit is contained in:
parent
b1d1265450
commit
94202a51c8
@ -96,7 +96,8 @@ namespace app {
|
||||
m_image = image;
|
||||
}
|
||||
DraggedData(const os::SurfaceRef& surface) {
|
||||
convert_surface_to_image(surface.get(), 0, 0, surface->width(), surface->height(), m_image);
|
||||
if (surface)
|
||||
convert_surface_to_image(surface.get(), 0, 0, surface->width(), surface->height(), m_image);
|
||||
}
|
||||
|
||||
const doc::ImageRef& getImage() const { return m_image; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user