Fixed a typo that led to CRLF bugs in uiMultilineEntry on Windows. Thanks to @mimecorg for spotting it.

Update #359
This commit is contained in:
Pietro Gagliardi 2018-05-28 13:37:40 -04:00
parent 0da7b3fceb
commit c3be9f221c
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void uiMultilineEntrySetText(uiMultilineEntry *e, const char *text)
// doing this raises an EN_CHANGED
e->inhibitChanged = TRUE;
crlf = LFtoCRLF(text);
uiWindowsSetWindowText(e->hwnd, text);
uiWindowsSetWindowText(e->hwnd, crlf);
uiprivFree(crlf);
e->inhibitChanged = FALSE;
// don't queue the control for resize; entry sizes are independent of their contents