Kaydet (Commit) 53352706 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: rhbz#1602589 null_check 'guiRow'

Change-Id: I0c93e6a721646363e5b71ec0e9db6199e7cce006
Reviewed-on: https://gerrit.libreoffice.org/57641
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 84ee78fc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment