changeset 468:74e550aa3b6a

Fixes focus error.
author Magnus Schieder <mschieder@intevation.de>
date Fri, 04 May 2018 15:36:50 +0200
parents 59d9c5840273
children 050ffdec60d9
files getan/states.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/states.py	Thu May 03 15:38:42 2018 +0200
+++ b/getan/states.py	Fri May 04 15:36:50 2018 +0200
@@ -493,6 +493,8 @@
 
     def renew_focus(self):
         e_len = self.view.row_count()
+        if e_len == 0:
+            return
         f = self.view.get_focus_pos()
         if f >= e_len:
             f = e_len - 1
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)