Skip to content

Commit f382302

Browse files
author
LoneWandererProductions
committed
Fix usings
1 parent 431bb03 commit f382302

7 files changed

Lines changed: 9 additions & 6 deletions

File tree

CommonControls.Images/CommonControls.Images.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313

1414
<ItemGroup>
15+
<ProjectReference Include="..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
1516
<ProjectReference Include="..\Imaging\Imaging.csproj" />
1617
</ItemGroup>
1718

CommonControls.Images/Thumbnails.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ private async Task LoadImages()
518518
// Neither is 1 → calculate width based on height
519519
if (thumbHeight != 1 && thumbWidth != 1 && pics.Count > 1)
520520
{
521-
var fraction = new Fraction(pics.Count, thumbHeight);
522-
thumbWidth = (int)Math.Ceiling(fraction.Decimal);
521+
// (Numerator + Denominator - 1) / Denominator
522+
thumbWidth = (pics.Count + thumbHeight - 1) / thumbHeight;
523523
}
524524
}
525525

ImageCompare/ImageCompare.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<ProjectReference Include="..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
1414
<ProjectReference Include="..\FileHandler\FileHandler.csproj" />
1515
<ProjectReference Include="..\Imaging\Imaging.csproj" />
16+
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
1617
</ItemGroup>
1718

1819
<ItemGroup>

Imaging/Imaging.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23+
<ProjectReference Include="..\DataFormatter\DataFormatter.csproj" />
24+
<ProjectReference Include="..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
2325
<ProjectReference Include="..\Mathematics.Constants\Mathematics.Constants.csproj" />
26+
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
2427
<ProjectReference Include="..\RenderEngine\RenderEngine.csproj" />
2528
</ItemGroup>
2629

ImagingTests/ImagingTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<ProjectReference Include="..\FileHandler\FileHandler.csproj" />
4747
<ProjectReference Include="..\ImageCompare\ImageCompare.csproj" />
4848
<ProjectReference Include="..\Imaging\Imaging.csproj" />
49+
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
4950
</ItemGroup>
5051

5152
</Project>

RenderEngine/RenderEngine.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,4 @@
2323
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
2424
</ItemGroup>
2525

26-
<ItemGroup>
27-
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
28-
</ItemGroup>
29-
3026
</Project>

Solaris/Solaris.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<ItemGroup>
1010
<ProjectReference Include="..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
1111
<ProjectReference Include="..\Imaging\Imaging.csproj" />
12+
<ProjectReference Include="..\Mathematics\Mathematics.csproj" />
1213
</ItemGroup>
1314

1415
<ItemGroup>

0 commit comments

Comments
 (0)