Commit d31344d7 authored by Oleg Korshul's avatar Oleg Korshul

correct metafile bounds

parent 8312cce2
......@@ -217,6 +217,11 @@ namespace MetaFile
double dX, dY, dW, dH;
GetBounds(&dX, &dY, &dW, &dH);
if (dW < 0)
dW = -dW;
if (dH < 0)
dH = -dH;
if (nWidth < 0) nWidth = dW;
nHeight = (int)((double)nWidth * dH / dW);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment