File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313
1414 <ItemGroup >
15+ <ProjectReference Include =" ..\ExtendedSystemObjects\ExtendedSystemObjects.csproj" />
1516 <ProjectReference Include =" ..\Imaging\Imaging.csproj" />
1617 </ItemGroup >
1718
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments