Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit dd5d5cc

Browse files
hpsadgrunwald
authored andcommitted
Fixing exception in "load layout". This exception is illegal for this case in “load layout” logic, because the “save layout” logic assumes such case
1 parent c1a14a4 commit dd5d5cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Libraries/AvalonDock/AvalonDock/DockingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3754,7 +3754,7 @@ void RestoreLayout(XmlDocument doc)
37543754
throw new FileFormatException("Unsupported layout file version");
37553755

37563756
if (doc.DocumentElement.ChildNodes.Count != 3 ||
3757-
(doc.DocumentElement.ChildNodes[0].Name != "ResizingPanel" && doc.DocumentElement.ChildNodes[0].Name != "DocumentPane") ||
3757+
(doc.DocumentElement.ChildNodes[0].Name != "ResizingPanel" && doc.DocumentElement.ChildNodes[0].Name != "DocumentPane" && doc.DocumentElement.ChildNodes[0].Name != "DocumentPaneResizingPanel") ||
37583758
doc.DocumentElement.ChildNodes[1].Name != "Hidden" ||
37593759
doc.DocumentElement.ChildNodes[2].Name != "Windows")
37603760
{

0 commit comments

Comments
 (0)