Skip to content

Commit b6fdac4

Browse files
authored
Fix LT-22193: Change in Yellow Bar behavior in Interlinear Texts (#413)
* Fix LT-22193: Change in Yellow Bar behavior in Interlinear Texts * Fix another source of the problem
1 parent 969045a commit b6fdac4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Src/LexText/Interlinear/FocusBoxController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private void ChangeOrCreateSandbox(AnalysisOccurrence selected)
129129
int color = (int)CmObjectUi.RGB(DefaultBackColor);
130130
//if this sandbox is presenting a wordform with multiple possible analyses then set the
131131
//bg color indicator
132-
if (selected.Analysis.Analysis == null && selected.Analysis.Wordform != null &&
132+
if (selected.Analysis.Wordform != null &&
133133
SandboxBase.GetHasMultipleRelevantAnalyses(selected.Analysis.Wordform))
134134
{
135135
color = InterlinVc.MultipleApprovedGuessColor;

Src/LexText/Interlinear/SandboxBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,7 @@ private bool LoadRealDataIntoSec1(int hvoSbWord, bool fLookForDefaults, bool fAd
12101210
//set the color before we fidle with our the wordform, it right for this purpose now.
12111211
if ((m_occurrenceSelected == null ||
12121212
m_occurrenceSelected.Analysis == null ||
1213-
(m_occurrenceSelected.Analysis.Analysis == null &&
1214-
m_occurrenceSelected.Analysis.Wordform != null)) &&
1213+
m_occurrenceSelected.Analysis.Wordform != null) &&
12151214
GetHasMultipleRelevantAnalyses(CurrentAnalysisTree.Wordform))
12161215
{
12171216
MultipleAnalysisColor = InterlinVc.MultipleApprovedGuessColor;

0 commit comments

Comments
 (0)