fix a pence post error in painting of dotted border collapse borders r/sr=roc bug 126540

This commit is contained in:
Bernd 2009-02-08 17:42:01 +01:00
parent bc1cac07b0
commit bb7273a63c

View File

@ -2118,7 +2118,7 @@ GetDashInfo(nscoord aBorderLength,
aEndDashLength = 0;
}
else {
aNumDashSpaces = aBorderLength / (2 * aDashLength); // round down
aNumDashSpaces = (aBorderLength - aDashLength)/ (2 * aDashLength); // round down
nscoord extra = aBorderLength - aStartDashLength - aEndDashLength - (((2 * aNumDashSpaces) - 1) * aDashLength);
if (extra > 0) {
nscoord half = RoundIntToPixel(extra / 2, aTwipsPerPixel);