Browse Source
Merge pull request #2351 from AvaloniaUI/fixes/prevent-exception-in-renderloop
prevent occasional exception being logged in render loop.
pull/2353/head
danwalmsley
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Visuals/Rendering/RenderLoop.cs
|
|
|
@ -117,9 +117,9 @@ namespace Avalonia.Rendering |
|
|
|
}, DispatcherPriority.Render); |
|
|
|
} |
|
|
|
|
|
|
|
foreach (var i in _items) |
|
|
|
for(int i = 0; i < _items.Count; i++) |
|
|
|
{ |
|
|
|
i.Render(); |
|
|
|
_items[i].Render(); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
|