File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 37
37
</ItemGroup >
38
38
39
39
<ItemGroup >
40
- <PackageReference Include =" Avalonia" Version =" 11.1.2" />
41
- <PackageReference Include =" Avalonia.Desktop" Version =" 11.1.2" />
42
- <PackageReference Include =" Avalonia.Themes.Fluent" Version =" 11.1.2" />
43
- <PackageReference Include =" Avalonia.Controls.DataGrid" Version =" 11.1.2" />
40
+ <PackageReference Include =" Avalonia" Version =" 11.0.13" />
41
+ <PackageReference Include =" Avalonia.Desktop" Version =" 11.0.13" />
42
+ <PackageReference Include =" Avalonia.Themes.Fluent" Version =" 11.0.13" />
43
+ <PackageReference Include =" Avalonia.Controls.DataGrid" Version =" 11.0.13" />
44
+ <PackageReference Include =" Avalonia.Diagnostics" Version =" 11.0.13" Condition =" '$(Configuration)' == 'Debug'" />
44
45
<PackageReference Include =" Avalonia.AvaloniaEdit" Version =" 11.1.0" />
45
- <PackageReference Include =" Avalonia.Diagnostics" Version =" 11.1.2" Condition =" '$(Configuration)' == 'Debug'" />
46
46
<PackageReference Include =" AvaloniaEdit.TextMate" Version =" 11.1.0" />
47
47
<PackageReference Include =" CommunityToolkit.Mvvm" Version =" 8.2.2" />
48
48
<PackageReference Include =" TextMateSharp.Grammars" Version =" 1.0.60" />
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ protected override Size MeasureOverride(Size availableSize)
158
158
IsTag = decorator . Type == Models . DecoratorType . Tag ,
159
159
} ;
160
160
161
- var geo = null as StreamGeometry ;
161
+ StreamGeometry geo ;
162
162
switch ( decorator . Type )
163
163
{
164
164
case Models . DecoratorType . CurrentBranchHead :
@@ -176,7 +176,7 @@ protected override Size MeasureOverride(Size availableSize)
176
176
break ;
177
177
}
178
178
179
- var drawGeo = geo . Clone ( ) ;
179
+ var drawGeo = geo ! . Clone ( ) ;
180
180
var iconBounds = drawGeo . Bounds ;
181
181
var translation = Matrix . CreateTranslation ( - ( Vector ) iconBounds . Position ) ;
182
182
var scale = Math . Min ( 8.0 / iconBounds . Width , 8.0 / iconBounds . Height ) ;
You can’t perform that action at this time.
0 commit comments