Преглед на файлове

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);
 
                 }