Fix new problem with LT-11746: Make Preview aware of publication#858
Fix new problem with LT-11746: Make Preview aware of publication#858jtmaxwell3 merged 3 commits intomainfrom
Conversation
NUnit Tests 1 files ±0 1 suites ±0 6m 30s ⏱️ +2s Results for commit fcdad9a. ± Comparison against base commit 5334190. This pull request removes 3 and adds 2 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
Did you check and see if there are any visual changes after this beyond the current bug fix? |
|
I didn't see any other changes, but if there were other changes then I expect that we would want them. Adding the publication parameter makes the function call used by the preview to be identical to the function call used by the dictionary display. So the preview display should look like the dictionary display, which is what we want. |
|
Previously, jasonleenaylor (Jason Naylor) wrote…
After getting past my dependency trouble I was able to build this branch locally and confirm that there are things we don't want in the single preview that were controlled by the lack of the publication decorator. Letter headers at least. I feared highlighting but I don't see that happening. |
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on jtmaxwell3).

This fixes a new problem with https://jira.sil.org/browse/LT-11746: Lexical relations shouldn't be shown if they are not in the current publication. The solution was to pass in a DictionaryPublicationDecorator like the one in XhtmlDocView.cs.
This change is