wizards/com/sun/star/wizards/agenda/TopicsControl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 53352706de3152fe57309a3e2b2ec793949b4413 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 18 13:43:09 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jul 18 17:16:56 2018 +0200 Related: rhbz#1602589 null_check 'guiRow' Change-Id: I0c93e6a721646363e5b71ec0e9db6199e7cce006 Reviewed-on: https://gerrit.libreoffice.org/57641 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/wizards/com/sun/star/wizards/agenda/TopicsControl.py b/wizards/com/sun/star/wizards/agenda/TopicsControl.py index e345ddcd11b0..6b3561003b4c 100644 --- a/wizards/com/sun/star/wizards/agenda/TopicsControl.py +++ b/wizards/com/sun/star/wizards/agenda/TopicsControl.py @@ -458,8 +458,9 @@ class TopicsControl(ControlScroller): def rowDown(self, guiRow=None, control=None): try: - if guiRow is None and control is None: + if guiRow is None: guiRow = self.lastFocusRow - self.nscrollvalue + if control is None: control = self.lastFocusControl # only perform if this is not the last row. actuallRow = guiRow + self.nscrollvalue @@ -490,8 +491,9 @@ class TopicsControl(ControlScroller): def rowUp(self, guiRow=None, control=None): try: - if guiRow is None and control is None: + if guiRow is None: guiRow = self.lastFocusRow - self.nscrollvalue + if control is None: control = self.lastFocusControl # only perform if this is not the first row actuallRow = guiRow + self.nscrollvalue _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits