瀏覽代碼

fix bug in COTSField class

GSP 2 周之前
父節點
當前提交
fae4685902
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSField.cs

+ 2 - 1
OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSField.cs

@@ -837,7 +837,8 @@ namespace OTSDataType
                 semPos.X = (int)semP.X;
                 semPos.Y = (int)semP.Y;
                 p.SetSEMPos(semPos);
-                p.SetFieldOTSPos(GetOTSPosition());
+                var otspos = GetOTSPosition();
+                p.SetFieldOTSPos(new Point((int)otspos.X,(int)otspos.Y));
             }
 
         }