mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Update generated_image.cpp
This commit is contained in:
@@ -324,8 +324,8 @@ Image BleedEdgedImage::generate(const Options& opt) {
|
|||||||
// create enlarged image
|
// create enlarged image
|
||||||
Image base_img = base_image->generate(opt);
|
Image base_img = base_image->generate(opt);
|
||||||
int w = base_img.GetWidth(), h = base_img.GetHeight();
|
int w = base_img.GetWidth(), h = base_img.GetHeight();
|
||||||
if (w <= 0 || h <= 0) {
|
if (w <= 4 || h <= 4) {
|
||||||
queue_message(MESSAGE_ERROR, _("Cannot add bleed edge to empty image"));
|
queue_message(MESSAGE_ERROR, _("Image too small to add bleed edge"));
|
||||||
return base_img;
|
return base_img;
|
||||||
}
|
}
|
||||||
bool is_landscape = w > h;
|
bool is_landscape = w > h;
|
||||||
|
|||||||
Reference in New Issue
Block a user