Skip to content

Commit 5fdf196

Browse files
committed
final fix to make WindowsDesktopPresenter backward compatible
1 parent d664816 commit 5fdf196

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎WindowsDesktopPresenter/ShowAndHang/Window2DPlot.xaml.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public Window2DPlot(IEnumerable<IEnumerable<Vector2>> listOfArrayOfPoints, strin
7272
MarkerType marker, Color color = null) : this(title)
7373
{
7474
if (plot2DType == Plot2DType.Area)
75-
throw new Exception("This function is not intended for Plot2DType.Area. LineColor and FillColor are required.");
75+
plot2DType = Plot2DType.Line;
76+
//throw new Exception("This function is not intended for Plot2DType.Area. LineColor and FillColor are required.");
7677
PlotData(listOfArrayOfPoints, plot2DType, closeShape, marker, color);
7778
InitializeComponent();
7879
}

0 commit comments

Comments
 (0)