Pfiou
This commit is contained in:
@@ -164,7 +164,7 @@ void processFile(string inputPath, string outputPath, string pattern)
|
||||
if (from.size != to.size)
|
||||
throw new Exception(format("rectangle size mismatch for key: %s", tr));
|
||||
|
||||
writefln("DEBUG: copy %s to %s", from, to);
|
||||
//writefln("DEBUG: copy %s to %s", from, to);
|
||||
|
||||
copyRect(from, to);
|
||||
}
|
||||
@@ -238,7 +238,7 @@ Rect parseRect(JSONValue parent,
|
||||
Rect parseRect(string r, Size defaultSize)
|
||||
{
|
||||
r = strip(r);
|
||||
int mPos = cast(int) r.indexOf("-");
|
||||
int mPos = cast(int) r.indexOf("--");
|
||||
|
||||
Size size;
|
||||
Point pos;
|
||||
@@ -250,8 +250,9 @@ Rect parseRect(string r, Size defaultSize)
|
||||
}
|
||||
else
|
||||
{
|
||||
// U+2014 is 3 bytes long
|
||||
pos = parsePoint(r[0..mPos], defaultSize);
|
||||
size = parseSize(r[mPos+1..$], defaultSize);
|
||||
size = parseSize(r[mPos+2..$], defaultSize);
|
||||
}
|
||||
|
||||
return Rect(pos, size);
|
||||
@@ -260,6 +261,7 @@ Rect parseRect(string r, Size defaultSize)
|
||||
int parseIntegerExpression(string source,
|
||||
Size defaultSize)
|
||||
{
|
||||
source = strip(source);
|
||||
auto e = compileExpression!int(source);
|
||||
//e["TX"] = defaultSize.w;
|
||||
//e["TY"] = defaultSize.h;
|
||||
|
||||
Reference in New Issue
Block a user