NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Tweaks.TweakExceptionHandling bug with CopyInnerExceptionMessageToTopLevelException value #265

Closed jozefizso closed 4 years ago

jozefizso commented 4 years ago

The Tweaks.TweakExceptionHandling method incorrectly handles the NOExceptionHandling value when parsing it.

The case statement tries to compare a lower-cased value to a constant which contains upper case letter so that case will never succeed.

https://github.com/NetOfficeFw/NetOffice/blob/3b56a7420dab2d1a18d4b60ae8e12e728423cf1b/Source/NetOffice/Tools/Tweaks.cs#L316-L338

jozefizso commented 4 years ago

Fixed in 1.7.4.8