Browse Source

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

gsp 3 years ago
parent
commit
b210d2ff2b

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

@@ -958,8 +958,10 @@ namespace OTSMeasureApp
             foreach (var s in m_visualSamples)
             foreach (var s in m_visualSamples)
             {
             {
                 allobj.Add(s.GetMeasureGDIObject());
                 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);
                     allobj.Add(f);
 
 
                 }
                 }