Skip to content

Commit 48f4c64

Browse files
committed
fix bug with enumerator
1 parent b7ca663 commit 48f4c64

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CrossStitchProject/CrossStitcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ private static Dictionary<Color,Floss> GenerateFlossDictionary(Bitmap image)
7474
var colorsNeeded = ImageHelper.GetColors(image);
7575
var dict = new Dictionary<Color, Floss>();
7676
var symbolEnumerator = Symbols.GetSymbols().GetEnumerator();
77+
symbolEnumerator.MoveNext();
7778
using (var flossStream = Assembly.GetExecutingAssembly()
7879
.GetManifestResourceStream("CrossStitchProject.floss2hex.dat"))
7980
using (var flossReader = new StreamReader(flossStream))

CrossStitchProject/Templates/pattern_razor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@
104104
}
105105
if (x >= 5 && x % 5 == 0)
106106
{
107-
<div class='w x' style="@style">@floss.Symbol</div>
107+
<div class='w x' style="@style">@(floss.Symbol)</div>
108108
}
109109
else
110110
{
111-
<div class='x' style="@style">@floss.Symbol</div>
111+
<div class='x' style="@style">@(floss.Symbol)</div>
112112
}
113113
}
114114
@if (y > 0 && (y + 1) % 5 == 0)

CrossStitchProject/symbols.dat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-
33
a
44
b
5+
c
56
d
67
e
78
f
@@ -465,4 +466,4 @@ M
465466
🔜
466467
💯
467468
🆒
468-
469+

0 commit comments

Comments
 (0)