Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/gfx/generated_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ bool MaskedBlendImage::operator == (const GeneratedImage& that) const {

Image CombineBlendImage::generate(const Options& opt) const {
Image img = image1->generate(opt);
combine_image(img, image2->generate(opt), image_combine);
Image img2 = image2->generate(opt);
if (img.GetWidth() != img2.GetWidth() || img.GetHeight() != img2.GetHeight())
throw ScriptError(_("Combined images must be of the same size"));
combine_image(img, img2, image_combine);
return img;
}
ImageCombine CombineBlendImage::combine() const {
Expand Down