From abeaf384ca65153fa9c66f8953cd0f68ad5f9f9f Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期二, 11 十一月 2025 11:23:42 +0800
Subject: [PATCH] 1.曲线图前烘拆分为AB腔。 2.曲线图后烘拆分为AB腔。

---
 SourceCode/Bond/Servo/CParam.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/CParam.cpp b/SourceCode/Bond/Servo/CParam.cpp
index 4935b4e..57a8f0c 100644
--- a/SourceCode/Bond/Servo/CParam.cpp
+++ b/SourceCode/Bond/Servo/CParam.cpp
@@ -65,7 +65,12 @@
 
 double CParam::getDoubleValue()
 {
-	return m_fValue;
+	if(m_nValueType == PVT_DOUBLE)
+		return m_fValue;
+	if (m_nValueType == PVT_INT)
+		return (double)m_nValue;
+
+	return 0.0;
 }
 
 void CParam::setDoubleValue(double value)

--
Gitblit v1.9.3