From fe084bf42e2002c0636b90c6bc326cc06b318158 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 14 Apr 2021 16:11:10 +0200 Subject: [PATCH] Ensure prev/next row lies beyond visible --- .../macOS/Scenes/Preferences/DebugLogViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Passepartout/App/macOS/Scenes/Preferences/DebugLogViewController.swift b/Passepartout/App/macOS/Scenes/Preferences/DebugLogViewController.swift index e3cce924..bb9e327c 100644 --- a/Passepartout/App/macOS/Scenes/Preferences/DebugLogViewController.swift +++ b/Passepartout/App/macOS/Scenes/Preferences/DebugLogViewController.swift @@ -148,6 +148,9 @@ class DebugLogViewController: NSViewController { let visibleRow = firstVisibleRow() let viewport = logLines[0.. visibleRow else { + return + } tableTextLog.scrollRowToVisible(row) }