Fixed bugs that cause DimensionsOfLine() to return wrong values for width and height.