[Getan-commits] [PATCH] Fixes focus error
Wald Commits
scm-commit at wald.intevation.org
Fri May 4 15:37:29 CEST 2018
# HG changeset patch
# User Magnus Schieder <mschieder at intevation.de>
# Date 1525441010 -7200
# Node ID 74e550aa3b6a03d371e587ca60ab49d1642ad0a5
# Parent 59d9c58402732a899374982afcadea0f38ecfd46
Fixes focus error.
diff -r 59d9c5840273 -r 74e550aa3b6a getan/states.py
--- 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
More information about the Getan-commits
mailing list