Skip to content

Commit e8a5271

Browse files
committed
CSV Coordinate Correction
1 parent c97cdbe commit e8a5271

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

NotepadStateLibrary/WindowsNotepadParser-Minimal/CSVMaps.cs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public StateMap()
108108

109109
public sealed class WindowMap : ClassMap<NPWindowState>
110110
{
111-
public WindowMap()
111+
public WindowMap()
112112
{
113113
AutoMap(System.Globalization.CultureInfo.InvariantCulture);
114114
Map(m => m.FileName).Index(0);
@@ -117,12 +117,15 @@ public WindowMap()
117117
Map(m => m.NumberTabs).Index(3);
118118
Map(m => m.TabsList).Index(4);
119119
Map(m => m.ActiveTab).Index(5);
120-
Map(m => m.TopLeftCoords).Index(6);
121-
Map(m => m.BottomRightCoords).Index(7);
122-
Map(m => m.WindowSize).Index(8);
123-
Map(m => m.CRC32Stored).Index(9);
124-
Map(m => m.CRC32Calculated).Index(10);
125-
Map(m => m.bytes).Index(11);
120+
Map(m => m.TopLeftCoords.X).Name("TopLeftCoords-X").Index(6);
121+
Map(m => m.TopLeftCoords.Y).Name("TopLeftCoords-Y").Index(7);
122+
Map(m => m.BottomRightCoords.X).Name("BottomRightCoords-X").Index(8);
123+
Map(m => m.BottomRightCoords.Y).Name("BottomRightCoords-Y").Index(9);
124+
Map(m => m.WindowSize.X).Name("WindowSize-X").Index(10);
125+
Map(m => m.WindowSize.Y).Name("WindowSize-Y").Index(11);
126+
Map(m => m.CRC32Stored).Index(12);
127+
Map(m => m.CRC32Calculated).Index(13);
128+
Map(m => m.bytes).Index(14);
126129
}
127130
}
128131
}

NotepadStateLibrary/WindowsNotepadParser-Minimal/WindowsNotepadParser-Minimal.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<Authors>ogmini</Authors>
10-
<Version>1.0.2</Version>
10+
<Version>1.0.3</Version>
1111
<PackageProjectUrl>https://github.com/ogmini/Notepad-State-Library</PackageProjectUrl>
1212
</PropertyGroup>
1313

NotepadStateLibrary/WindowsNotepadParser/CSVMaps.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,15 @@ public WindowMap()
117117
Map(m => m.NumberTabs).Index(3);
118118
Map(m => m.TabsList).Index(4);
119119
Map(m => m.ActiveTab).Index(5);
120-
Map(m => m.TopLeftCoords).Index(6);
121-
Map(m => m.BottomRightCoords).Index(7);
122-
Map(m => m.WindowSize).Index(8);
123-
Map(m => m.CRC32Stored).Index(9);
124-
Map(m => m.CRC32Calculated).Index(10);
125-
Map(m => m.bytes).Index(11);
120+
Map(m => m.TopLeftCoords.X).Name("TopLeftCoords-X").Index(6);
121+
Map(m => m.TopLeftCoords.Y).Name("TopLeftCoords-Y").Index(7);
122+
Map(m => m.BottomRightCoords.X).Name("BottomRightCoords-X").Index(8);
123+
Map(m => m.BottomRightCoords.Y).Name("BottomRightCoords-Y").Index(9);
124+
Map(m => m.WindowSize.X).Name("WindowSize-X").Index(10);
125+
Map(m => m.WindowSize.Y).Name("WindowSize-Y").Index(11);
126+
Map(m => m.CRC32Stored).Index(12);
127+
Map(m => m.CRC32Calculated).Index(13);
128+
Map(m => m.bytes).Index(14);
126129
}
127130
}
128131
}

NotepadStateLibrary/WindowsNotepadParser/WindowsNotepadParser.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<Version>1.0.2</Version>
8+
<Version>1.0.3</Version>
99
<Authors>ogmini</Authors>
1010
<PackageProjectUrl>https://github.com/ogmini/Notepad-State-Library</PackageProjectUrl>
1111
</PropertyGroup>

0 commit comments

Comments
 (0)