summaryrefslogtreecommitdiff
path: root/iup/src
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src')
-rwxr-xr-xiup/src/win/iupwin_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iup/src/win/iupwin_text.c b/iup/src/win/iupwin_text.c
index 057f6e0..0579ebc 100755
--- a/iup/src/win/iupwin_text.c
+++ b/iup/src/win/iupwin_text.c
@@ -1198,7 +1198,7 @@ void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag)
/* saves current selection / scroll position before doing anything */
line0 = SendMessage(ih->handle, EM_GETFIRSTVISIBLELINE, 0, 0);
- SendMessage(im->handle, EM_EXGETSEL, 0, LPARAM(&oldrange));
+ SendMessage(ih->handle, EM_EXGETSEL, 0, LPARAM(&oldrange));
selection = iupAttribGet(formattag, "SELECTION");
if (selection)
{