#37 Error assigning "null" to stroke.DashPattern in .NET

closed-fixed
nobody
None
5
2012-12-02
2012-06-17
Joel
No

I got an error at the following line of Document/objects/paintpath.cs:
stroke.DashPattern = (dashArray != null && dashArray.Length > 0 ? ConvertUtils.ToFloatArray(dashArray) : null);

It's not possible to assign a null value to stroke.DashPattern in .NET.
For the moment, I changed it to:
if (dashArray != null && dashArray.Length > 0) ConvertUtils.ToFloatArray(dashArray);

Discussion

    • status: open --> closed-fixed