From 52bc6767da574b751d5baead84f1eb04a184ac01 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 18:28:45 +0200 Subject: THAT should be the last typo... --- iup/src/win/iupwin_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iup/src') 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); } -- cgit v1.2.3