diff options
Diffstat (limited to 'iup/src/win')
-rwxr-xr-x | iup/src/win/iupwin_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iup/src/win/iupwin_text.c b/iup/src/win/iupwin_text.c index 5d1400d..5264a85 100755 --- a/iup/src/win/iupwin_text.c +++ b/iup/src/win/iupwin_text.c @@ -1227,7 +1227,7 @@ void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag) SendMessage(ih->handle, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&charformat); /* restores selection / scroll position */ - SendMessage(ih->handle, EM_EXSETSEL, 0, LPARAL(&oldRange)); + SendMessage(ih->handle, EM_EXSETSEL, 0, (LPARAM)&oldRange); line1 = SendMessage(ih->handle, EM_GETFIRSTVISIBLELINE, 0, 0); SendMessage(ih->handle, EM_LINESCROLL, 0, line0 - line1); } |