Skip to content

Commit 3a83dca

Browse files
committed
Add a suggestion
1 parent 8b7c0ad commit 3a83dca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CrossStitchProject/HtmlWriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void GenerateHtml()
9696
var distinctFlossesInImage = GenerateCrossStitchPattern();
9797
GenerateHtmlLegend(distinctFlossesInImage.ToList());
9898
}
99-
99+
//TODO: replace html with new class method calls?
100100
public HashSet<FlossInfo> GenerateCrossStitchPattern()
101101
{
102102
var chunkCount = 0;
@@ -117,7 +117,7 @@ public HashSet<FlossInfo> GenerateCrossStitchPattern()
117117
}
118118

119119
flossesInImage.Add(flossInfo);
120-
if (x > 0 && x % 50 == 0)
120+
if (x > 0 && x % DefaultChunkWidth == 0)
121121
{
122122
htmlString.AppendLine($"<div class='u'{style}></div><br/>");
123123
}

0 commit comments

Comments
 (0)