浏览代码

revert the field rectangle paint sequence so that the green or yellow rect will display fully.

gsp 3 年之前
父节点
当前提交
b210d2ff2b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

+ 3 - 1
OTSIncAMeasureApp/4-OTSSamplespaceGraphicsPanel/OTSSamplespaceWindow.cs

@@ -958,8 +958,10 @@ namespace OTSMeasureApp
             foreach (var s in m_visualSamples)
             {
                 allobj.Add(s.GetMeasureGDIObject());
-                foreach (var f in s.GetMeasureFieldGDIObjects())
+                var flds = s.GetMeasureFieldGDIObjects();
+                for(int i=flds.Count;i>0;i--)//revert the sequence so that the last field will paint first.then the green or yellow rectangle can display fully.
                 {
+                    var f = flds[i-1];
                     allobj.Add(f);
 
                 }