Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional check in UpdateRowColDefinitions to avoid exception. #190

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

bdachev
Copy link
Contributor

@bdachev bdachev commented Aug 24, 2020

With certain layouts (produced by our software) undocking an anchorable leads to following:

System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Specified argument was out of the range of valid values.
Parameter name: index
Source=PresentationCore
StackTrace:
at System.Windows.Media.VisualCollection.get_Item(Int32 index)
at System.Windows.Controls.UIElementCollection.get_Item(Int32 index)
at AvalonDock.Controls.LayoutGridControl`1.UpdateRowColDefinitions() in C:\SOURCE\Tests\AvalonDock\Dirkster99\source\Components\AvalonDock\Controls\LayoutGridControl.cs:line 255

This exception was originally thrown at this call stack:
[External Code]
AvalonDock.Controls.LayoutGridControl.UpdateRowColDefinitions() in LayoutGridControl.cs

@Dirkster99 Dirkster99 merged commit 30c51a9 into Dirkster99:master Aug 24, 2020
@bdachev bdachev deleted the UpdateRowColDefinitions_crash branch August 25, 2020 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants