fernandreu / office-ribbonx-editor

An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
MIT License
513 stars 97 forks source link

ArgumentException: The path is not of a legal form. #208

Closed mariodinoia closed 2 years ago

mariodinoia commented 2 years ago

Describe the bug

System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at OfficeRibbonXEditor.ViewModels.Windows.MainWindowViewModel.<>c__DisplayClass89_0.<FinishOpeningFile>b__0(OfficeDocumentViewModel x) in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Windows\MainWindowViewModel.cs:line 689
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at OfficeRibbonXEditor.ViewModels.Windows.MainWindowViewModel.FinishOpeningFile(String fileName) in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Windows\MainWindowViewModel.cs:line 689

To Reproduce Please describe the steps that lead to the unhandled exception here, including example files if relevant.

Screenshots If applicable, add screenshots to help explain how the unhandled exception occurred.

Additional context

mariodinoia commented 2 years ago

Capture I loaded 4 Files to copy the ribbon between them and the 4th file came up with this errror when saving