Fixed: Crash in 3dsmax plugins (patch provided by Teanwen, thank you so much)
--HG-- branch : develop
This commit is contained in:
parent
b039f3cd61
commit
189ed246b1
3 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ extern HINSTANCE hInstance;
|
||||||
static INT_PTR CALLBACK CNelExportDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
static INT_PTR CALLBACK CNelExportDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
// Set locale to english
|
// Set locale to english
|
||||||
setlocale (LC_NUMERIC, "English");
|
setlocale (LC_NUMERIC, "C");
|
||||||
|
|
||||||
BOOL ret = TRUE;
|
BOOL ret = TRUE;
|
||||||
switch (msg)
|
switch (msg)
|
||||||
|
|
|
@ -1098,7 +1098,7 @@ static std::string OldDecimalSeparatorLocale;
|
||||||
static void setDecimalSeparatorAsPoint()
|
static void setDecimalSeparatorAsPoint()
|
||||||
{
|
{
|
||||||
OldDecimalSeparatorLocale = ::setlocale(LC_NUMERIC, NULL);
|
OldDecimalSeparatorLocale = ::setlocale(LC_NUMERIC, NULL);
|
||||||
::setlocale(LC_NUMERIC, "English");
|
::setlocale(LC_NUMERIC, "C");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void restoreDecimalSeparator()
|
static void restoreDecimalSeparator()
|
||||||
|
|
|
@ -3522,7 +3522,7 @@ void EPM_PaintCMode::DoPaint ()
|
||||||
static float best = 10000.f;
|
static float best = 10000.f;
|
||||||
|
|
||||||
// Set local to english
|
// Set local to english
|
||||||
setlocale (LC_NUMERIC, "English");
|
setlocale (LC_NUMERIC, "C");
|
||||||
|
|
||||||
if (pobj->hOpsPanel)
|
if (pobj->hOpsPanel)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue