Skip to content

Commit

Permalink
have the bulk word doc converter reload the map interator even if the…
Browse files Browse the repository at this point in the history
…re's only a single document... if the user had clicked on the samples in the UI, it skips from one to the next and then during conversion, those would have been skipped over.
  • Loading branch information
bobeaton committed Oct 11, 2021
1 parent 87893db commit a5e7845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SILConvertersWordML/LinqDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public override bool ConvertDocumentByFontNameAndStyle(Dictionary<string, Font>
// mapFontNames2Iterator, has one iterator for each unique font (across all docs). If there's
// only one doc, then it's already loaded. But if there's more than one doc, then we have to treat each
// one as if by itself (which unfortunately means empty the collection and requery)
if (!Program.IsOnlyOneDoc)
// UPDATE (2021-10-08): even for one, we need to resent it, bkz it's possible the user clicked thru some samples
// so it wouldn't start at the beginning
// if (!Program.IsOnlyOneDoc)
{
MapIteratorList = new MapIteratorListLinq();
InitializeIteratorsCustomFontNames();
Expand Down

0 comments on commit a5e7845

Please sign in to comment.