tests/svghmi/py_ext_0@py_ext/pyfile.xml
branchsvghmi
changeset 3151 8e5d383a58cb
parent 3069 a9b03c2634c5
child 3181 50d0fef791d5
--- a/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Thu Feb 18 10:43:10 2021 +0100
+++ b/tests/svghmi/py_ext_0@py_ext/pyfile.xml	Thu Feb 18 12:02:28 2021 +0100
@@ -50,7 +50,8 @@
         if len(extra) > 0 and extra[0] != "":
             fAlarms = [alrm for alrm in Alarms if alrm[1].find(extra[0])!=-1]
         else:
-            fAlarms = Alarms
+            fAlarms = Alarms[:]
+        fAlarms.reverse()
         new_range = len(fAlarms)
         delta = new_range - visible
         new_position = 0 if delta <= 0 else delta if old_position > delta else old_position