diff --git a/GISDlg.cpp b/GISDlg.cpp
index f212b04..1f25622 100644
--- a/GISDlg.cpp
+++ b/GISDlg.cpp
@@ -1221,6 +1221,8 @@ void CGISDlg::Openlocalfile(CString file)
 
 		m_Layer->AddLayerInfo(filename,2);
 
+		m_map.ZoomToLayer(tiffLayerID);
+
 		//�Ƿ��Ѿ������˵�ͼ
 		m_bHaveAddMap = true;
 	}
@@ -3454,6 +3456,7 @@ void CGISDlg::ClearDrawingInLineDesign()
 	if (m_designLineLayerID2 != -1)
 	{
 		m_map.RemoveLayer(m_designLineLayerID2);
+		m_designLineLayerID2 = -1;
 	}
 	//m_map.ClearLabels(m_designLineLayerID);
 }
@@ -3908,7 +3911,7 @@ void CGISDlg::DrawDesignLineData()
 	m_map.ClearDrawing(m_designLineLayerID);
 	m_designLineLayerID = m_map.NewDrawing(1);
 	long index = m_map.GetLayerPosition(m_designLineLayerID);
-	BOOL b= m_map.MoveLayerUp(index);
+	//BOOL b= m_map.MoveLayerUp(index);
 	int i = 0;	
 
 	//���ƺ��㼰���ע