Skip to content

Commit

Permalink
Fixed invalid day and month in StickyNotesDemo proj (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjali-wpf authored Aug 26, 2024
1 parent 467f26b commit 313d6d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sample Applications/StickyNotesDemo/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ private void ExtractValues(out int contentIndicator, string line, out double hei
var seconds = (int) double.Parse(token);

tail = index + 1;
index = line.IndexOf('/', tail);
index = line.IndexOf('-', tail);
token = line.Substring(tail, (index - tail));
var month = int.Parse(token);
var day = int.Parse(token);

tail = index + 1;
index = line.IndexOf('/', tail);
index = line.IndexOf('-', tail);
token = line.Substring(tail, (index - tail));
var day = int.Parse(token);
var month = int.Parse(token);

tail = index + 1;
index = line.IndexOf('|', tail);
Expand Down

0 comments on commit 313d6d2

Please sign in to comment.