View Single Post
Old 07-16-2024, 09:44 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,918
Karma: 6240958
Join Date: Nov 2009
Device: many
It works just fine for me on macOS after my fix. The only change was in Misc/NumericItem.h

The locale dependent thousands groupSeparators were messing up converting the text value in each column to a float for comparison purposes.

So now we use the QLocale dependent routine to convert the text to a float value for numeric comparison. This should work under any locale dependent group separator.

If this is not working for you then perhaps we need to set the default QLocale to use in main.cpp.

Could you try that?

#include <QLocale>

early in main.cpp add

QLocale::setDefault(QLocale::system());


or replace QLocale::system() with whichever locale you want. Please see the note below that tells how a system locale is generated on Windows.


Quote:
Returns a QLocale object initialized to the system locale.

The system locale may use system-specific sources for locale data, where available, otherwise falling back on QLocale's built-in database entry for the language, script and territory the system reports.

For example, on Windows and Mac, this locale will use the decimal/grouping characters and date/time formats specified in the system configuration panel.

Last edited by KevinH; 07-16-2024 at 09:48 PM.
KevinH is offline   Reply With Quote