From 2cd87a57cca5fdcc2e3af08acd32b6d2320bf65a Mon Sep 17 00:00:00 2001 From: lh <2334563547@qq.com> Date: Mon, 24 Aug 2026 15:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8F=98=E8=A1=A8=E7=9A=AE=E5=AF=B9=E9=BD=90=E6=B5=81=E9=87=8F?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E9=85=8D=E7=BD=AE=E6=97=A0=E6=B3=95=E5=9B=9E?= =?UTF-8?q?=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一 IsSnapToRateChanges 的序列化与反序列化字段名, 确保工程重新加载后能够正确恢复配置。 --- Src/nmNum/nmData/nmDataPerforation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/nmNum/nmData/nmDataPerforation.cpp b/Src/nmNum/nmData/nmDataPerforation.cpp index 306f74f..ac60678 100644 --- a/Src/nmNum/nmData/nmDataPerforation.cpp +++ b/Src/nmNum/nmData/nmDataPerforation.cpp @@ -217,8 +217,8 @@ void nmDataPerforation::FromJsonValue(const rapidjson::Value& jsonValue) } // 反序列化流动段数据 - if (jsonValue.HasMember("SnapToRateChanges") && jsonValue["SnapToRateChanges"].IsBool()) { - m_isSnapToRateChanges = jsonValue["SnapToRateChanges"].GetBool(); + if (jsonValue.HasMember("IsSnapToRateChanges") && jsonValue["IsSnapToRateChanges"].IsBool()) { + m_isSnapToRateChanges = jsonValue["IsSnapToRateChanges"].GetBool(); } if (jsonValue.HasMember("IsRateDependentEnabled") && jsonValue["IsRateDependentEnabled"].IsBool()) { m_isRateDependentEnabled = jsonValue["IsRateDependentEnabled"].GetBool();