Fix PowerPoint slide import across different locale settings#79
Fix PowerPoint slide import across different locale settings#79RSchwan wants to merge 1 commit intoJonathan-LeRoux:masterfrom
Conversation
|
Thanks for bringing this to my attention, I hadn't thought about the fact that the Tags were Strings, and that the String conversion was locale-dependent. This may require a larger fix, so please allow me to think a bit more about it. |
|
I addressed this slightly differently, by converting numbers with a "," decimal separator to have a "." decimal separator when appropriate. This will be part of the next 1.62.1 release. |
|
It now works on my machine, i.e., I can edit files from my college with a German locale. But the other way around doesn't work anymore. The problem is now that it's stored with a ".", but on a German locale machine it expects a "," and you get a type mismatch. If you are running macOS you can actually test it quite easily. PowerPoint is taking the system settings from the "Language & Region" tab. So changing the number format from e.g. 1'234'567.89 to 1 234 567,89 breaks editing formulas from a saved PowerPoint file for me. |
|
Thanks for testing. Could you point me to a line in the code that breaks with the new version? |
|
The problem arises in this line giving a type mismatch error: |
|
I think we just need to add a |
|
I think my solution is more robust than all the solutions on that post actually😂 |
This seems to work 👍 |
|
Here is an updated version: IguanaTex_v1_62_1_20250129.zip. |
|
The updated version works on my side and fixes the bug 👍 . |
|
Thanks a lot for testing! I have released it as v1.62.1 and will thus close this PR. |

Hi,
When opening PowerPoint files created with different locale settings (e.g. German using
1,2vs English using1.2), I was getting type mismatch errors due to inconsistent decimal separator handling (it just reads it as a string). I added sanitization for numeric values during import to handle both formats, i.e., ignoring it when there was a conversion error. This fixes it on my end.