Closed nbelyh closed 3 years ago
Thanks for the bug report! Yeah you are right, using CultureInfo.InvariantCulture
in the converter from this build onwards.
I'll double-check there are no other places with a hard-coded number format and a variant culture.
Describe the bug The application crashes when double-click on inserted icon.
To Reproduce Steps to reproduce the behavior:
Expected behavior Application does not crash
Screenshots
Additional context In most countries decimal separator is set to "," (coma) by default, not "." (dot) You could try using "CultureInfo.InvariantCulture" here to fix the issue, "null" seems to be a problem (it means "current culture"). There are two occurrences of this problem in this file: https://github.com/fernandreu/office-ribbonx-editor/blob/3d587b0dddfab82b1b123ba8b8b29f2670ee9517/src/OfficeRibbonXEditor/Converters/PowerConverter.cs#L19
This is originating from here ("1.2") - dot is used https://github.com/fernandreu/office-ribbonx-editor/blob/3d587b0dddfab82b1b123ba8b8b29f2670ee9517/src/OfficeRibbonXEditor/Views/Controls/IconTab.xaml#L164-L165
Log