From 044e53a69fafc04aaabb5d915e8b4abd5c0fe56a Mon Sep 17 00:00:00 2001 From: tombogle Date: Mon, 18 Nov 2024 18:05:17 -0500 Subject: [PATCH] SP-2350: Prevent exception when grid is null --- .../UI/TextAnnotationGrid/TranscriptionAnnotationColumn.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SayMore/Transcription/UI/TextAnnotationGrid/TranscriptionAnnotationColumn.cs b/src/SayMore/Transcription/UI/TextAnnotationGrid/TranscriptionAnnotationColumn.cs index 50be54f68..e64d13331 100644 --- a/src/SayMore/Transcription/UI/TextAnnotationGrid/TranscriptionAnnotationColumn.cs +++ b/src/SayMore/Transcription/UI/TextAnnotationGrid/TranscriptionAnnotationColumn.cs @@ -67,7 +67,11 @@ protected override IEnumerable GetPlaybackOptionMenus() protected override void SetFont(System.Drawing.Font newFont) { base.SetFont(newFont); - _grid.TranscriptionFont = newFont; + lock (this) + { + if (_grid != null) + _grid.TranscriptionFont = newFont; + } } } }