From 6dde8e3ceac21f2940cb5dfc9a9734a77faec6de Mon Sep 17 00:00:00 2001 From: MikiraSora Date: Wed, 15 Jan 2025 13:59:59 +0800 Subject: [PATCH] fix crash --- .../Graphics/Drawing/TargetImpl/VisibleLineVerticesQuery.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OngekiFumenEditor/Modules/FumenVisualEditor/Graphics/Drawing/TargetImpl/VisibleLineVerticesQuery.cs b/OngekiFumenEditor/Modules/FumenVisualEditor/Graphics/Drawing/TargetImpl/VisibleLineVerticesQuery.cs index 47250c2d..4a59ddf4 100644 --- a/OngekiFumenEditor/Modules/FumenVisualEditor/Graphics/Drawing/TargetImpl/VisibleLineVerticesQuery.cs +++ b/OngekiFumenEditor/Modules/FumenVisualEditor/Graphics/Drawing/TargetImpl/VisibleLineVerticesQuery.cs @@ -82,7 +82,8 @@ void CheckIfSoflanChanged2(double totalTGrid, bool isVailed) if (diff < 0) { var xGrid = start.CalulateXGrid(checkTGrid); - PostPoint(checkTGrid, xGrid, isVailed); + if (xGrid is not null) + PostPoint(checkTGrid, xGrid, isVailed); } affectedSoflanPoints.RemoveAt(affectedSoflanPoints.Count - 1);