未验证 提交 c52adfb9 编写于 作者: A Anjali Sheel 提交者: GitHub

Glyphs.cs code cleanup (#5611)

上级 b3fee317
......@@ -111,18 +111,9 @@ protected override Size ArrangeOverride(Size finalSize)
{
base.ArrangeOverride(finalSize);
Rect inkBoundingBox;
if (_measurementGlyphRun != null)
inkBoundingBox = _measurementGlyphRun.ComputeInkBoundingBox();
else
inkBoundingBox = Rect.Empty;
if (!inkBoundingBox.IsEmpty)
{
inkBoundingBox.X += _glyphRunOrigin.X;
inkBoundingBox.Y += _glyphRunOrigin.Y;
}
_measurementGlyphRun.ComputeInkBoundingBox();
return finalSize;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册