diff --git a/src/main.c b/src/main.c index cd4b721..7fad8c6 100644 --- a/src/main.c +++ b/src/main.c @@ -15,7 +15,6 @@ #include #include -// TODO: Align devision by zero protection // TODO: Readme.md // TODO: Readme for Amiga // TODO: Pack @@ -24,6 +23,7 @@ // TODO: Scripted tests! // BUG: Can't rename single file // BUG: Can't rename single file from it's file.info file +// BUG: Problems reading some icons width/heigth information // C helpers #define MAX(x, y) (((x) > (y)) ? (x) : (y)) @@ -163,6 +163,12 @@ int main(int argc, char **argv) // return RETURN_ERROR; // } + if (AlignX == 0 || AlignY == 0) + { + Information("Can't align to 0\n"); + return RETURN_ERROR; + } + unsigned int fixCount = 0; if (!fileOption && !dirOption) {