From 6b2094fa9484086c1fa9fe813695cc5735175b14 Mon Sep 17 00:00:00 2001 From: cbwu <504-wuchengbo@htsdfp.com> Date: Tue, 13 Aug 2024 09:22:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E6=9C=BA=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E6=8B=93=E5=B1=95=E4=B8=BA255?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GISDlg.cpp | 6 +++--- GISDlg.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/GISDlg.cpp b/GISDlg.cpp index 9ecea44..6dfc98d 100644 --- a/GISDlg.cpp +++ b/GISDlg.cpp @@ -71,7 +71,7 @@ CGISDlg::CGISDlg(CWnd* pParent /*=NULL*/) - for (int i = 0;i<3;i++) + for (int i = 0;i<255;i++) { //航迹标绘图层ID m_flyTrackLayerID[i] = -1; @@ -1086,7 +1086,7 @@ void CGISDlg::OnEraseTrack() //清除航迹 void CGISDlg::EraseTrack(int uavid) { - if (uavid<0||uavid>2) + if (uavid<0||uavid>255) { return; } @@ -3729,7 +3729,7 @@ void CGISDlg::AddTargetPoint(const int nPt, const double dX, const double dY) //说明:创建专门用于绘制无人机的矢量面图层,每次先删除上次标绘的Shp,再重新标绘 void CGISDlg::DrawUAV(int uavid, const double dX, const double dY, const double yaw,bool control) { - if (uavid<0||uavid>2) + if (uavid<0||uavid>255) { return; } diff --git a/GISDlg.h b/GISDlg.h index f69b554..a2e26dc 100644 --- a/GISDlg.h +++ b/GISDlg.h @@ -327,14 +327,14 @@ private: bool m_bHaveAddMap; //航迹标绘图层ID - long m_flyTrackLayerID[3]; + long m_flyTrackLayerID[255]; //UAV航迹标绘图层ID - long m_UAVFlyTrackLayerID[3]; + long m_UAVFlyTrackLayerID[255]; long m_UAVFlyTrackLayerID_ADS[MAX_PLANE_NUM_ADS]; //是否已经标绘了无人机的飞行轨迹 - bool m_bFirstDrawUAVTrack[3]; + bool m_bFirstDrawUAVTrack[255]; bool m_bFirstDrawUAVTrack_ADS[MAX_PLANE_NUM_ADS]; //地图显示区宽度、高度倒数 @@ -514,7 +514,7 @@ private: long m_CircleGuideLayer; //盘旋引导图层 - int m_drawTrackPtNum[3]; + int m_drawTrackPtNum[255]; //新航线设计的航点的最大个数 2016.01.06 int m_MaxNumofLinePt;