#827 "Error occurred: Width (0) and height (0) cannot be <= 0" (have to Ignore 100's of times) fixed

This commit is contained in:
honfika@gmail.com
2015-03-12 18:57:58 +01:00
parent 35548292c7
commit 5709415a58
6 changed files with 31 additions and 7 deletions

View File

@@ -30,6 +30,8 @@ public interface AbortRetryIgnoreHandler {
public static int IGNORE = 2;
public static int IGNORE_ALL = 3;
public int handle(Throwable thrown);
public AbortRetryIgnoreHandler getNewInstance();

View File

@@ -118,8 +118,8 @@ public class ShapeExporter {
case PNG:
case BMP:
RECT rect = st.getRect();
int newWidth = (int) (rect.getWidth() * settings.zoom / SWF.unitDivisor);
int newHeight = (int) (rect.getHeight() * settings.zoom / SWF.unitDivisor);
int newWidth = (int) (rect.getWidth() * settings.zoom / SWF.unitDivisor) + 1;
int newHeight = (int) (rect.getHeight() * settings.zoom / SWF.unitDivisor) + 1;
SerializableImage img = new SerializableImage(newWidth, newHeight, SerializableImage.TYPE_INT_ARGB);
img.fillTransparent();
Matrix m = new Matrix();