Fixed #441, swapped left & top.

This commit is contained in:
Robin Krom 2022-10-05 22:29:01 +02:00
parent 4c6707b468
commit 7e005f741a
No known key found for this signature in database
GPG key ID: BCC01364F1371490
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition="!$(MSBuildProjectName.Contains('Tests')) And $(MSBuildProjectName.StartsWith('Greenshot'))"> <ItemGroup Condition="!$(MSBuildProjectName.Contains('Tests')) And $(MSBuildProjectName.StartsWith('Greenshot'))">
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.109"> <PackageReference Include="Nerdbank.GitVersioning" Version="3.5.113">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference> </PackageReference>

View file

@ -12,7 +12,7 @@
<PackageReference Include="Dapplo.Windows.Icons" Version="1.0.28" /> <PackageReference Include="Dapplo.Windows.Icons" Version="1.0.28" />
<PackageReference Include="Dapplo.Windows.Kernel32" Version="1.0.28" /> <PackageReference Include="Dapplo.Windows.Kernel32" Version="1.0.28" />
<PackageReference Include="Dapplo.Windows.Multimedia" Version="1.0.28" /> <PackageReference Include="Dapplo.Windows.Multimedia" Version="1.0.28" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.45" /> <PackageReference Include="HtmlAgilityPack" Version="1.11.46" />
<PackageReference Include="log4net" version="2.0.15" /> <PackageReference Include="log4net" version="2.0.15" />
<PackageReference Include="Svg" Version="3.4.3" /> <PackageReference Include="Svg" Version="3.4.3" />
<Reference Include="Accessibility" /> <Reference Include="Accessibility" />

View file

@ -429,7 +429,7 @@ namespace Greenshot.Forms
{ {
// Correct the rectangle size, by making it 1 pixel bigger // Correct the rectangle size, by making it 1 pixel bigger
// We cannot use inflate, this would make the rect bigger to all sizes. // We cannot use inflate, this would make the rect bigger to all sizes.
_captureRect = new NativeRect(_captureRect.Top, _captureRect.Left, _captureRect.Width+1, _captureRect.Height+1); _captureRect = new NativeRect(_captureRect.Left, _captureRect.Top, _captureRect.Width+1, _captureRect.Height+1);
} }
// Go and process the capture // Go and process the capture