From 1517e5a5e06b3469507cd4e4647f40e76a532899 Mon Sep 17 00:00:00 2001 From: cbwu <504-wuchengbo@htsdfp.com> Date: Mon, 4 Dec 2023 09:34:20 +0800 Subject: [PATCH] =?UTF-8?q?type(feat):=E6=96=B0=E5=A2=9E=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=80=E5=A4=9A127=E4=B8=AA=E8=88=AA?= =?UTF-8?q?=E7=82=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GISDlg.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GISDlg.cpp b/GISDlg.cpp index d4c189c..6e74a2b 100644 --- a/GISDlg.cpp +++ b/GISDlg.cpp @@ -1972,6 +1972,11 @@ void CGISDlg::MouseDownMap1(short Button, short Shift, long x, long y) if (addPointPos>m_editLineDataGroup.linePointNum-4) return; //回收航线屏蔽4,5,6长边不让编辑 } + if (m_editLineDataGroup.pointNum>=127) //限制最多127个点 + { + return; + } + //计算添加点坐标 double linePt1[2] = {m_editLineDataGroup.linePts[addPointPos-1].dX,m_editLineDataGroup.linePts[addPointPos-1].dY}; @@ -2038,6 +2043,10 @@ void CGISDlg::MouseDownMap1(short Button, short Shift, long x, long y) } if (m_bSetPointModel)//置点 { + if (m_designLinePointNum>=127) //限制最多127个航点 + { + return; + } POINT pt; GetCursorPos( &pt );