mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix Qt5 decimal separator bug
Always use '.' as the decimal separator in the GUI, because we call setlocale(LC_NUMERIC, "C") in setLocale() (GuiApplication.cpp).
This commit is contained in:
parent
b885b80bc0
commit
92863de517
@ -179,7 +179,7 @@ string widgetToDoubleStr(QLineEdit const * input)
|
||||
|
||||
void doubleToWidget(QLineEdit * input, double const & value, char f, int prec)
|
||||
{
|
||||
QLocale loc;
|
||||
QLocale loc("C");
|
||||
loc.setNumberOptions(QLocale::OmitGroupSeparator);
|
||||
input->setText(loc.toString(value, f, prec));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user