浏览代码

fix Geometry.Parse create PathGeometry

Andrey Kunchev 6 年之前
父节点
当前提交
15700ea042
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Visuals/Media/Geometry.cs

+ 1 - 1
src/Avalonia.Visuals/Media/Geometry.cs

@@ -74,7 +74,7 @@ namespace Avalonia.Media
         /// </summary>
         /// <param name="s">The string.</param>
         /// <returns>A <see cref="StreamGeometry"/>.</returns>
-        public static Geometry Parse(string s) => StreamGeometry.Parse(s);
+        public static Geometry Parse(string s) => PathGeometry.Parse(s);
 
         /// <summary>
         /// Clones the geometry.