[Libreoffice-commits] core.git: wizards/com
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jul 18 15:17:22 UTC 2018
wizards/com/sun/star/wizards/agenda/TopicsControl.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 53352706de3152fe57309a3e2b2ec793949b4413
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 18 13:43:09 2018 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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
More information about the Libreoffice-commits
mailing list