modified RSGetTextSel

This commit is contained in:
chombier 2001-06-18 09:12:01 +00:00
parent bb32b20f18
commit a06acceb16
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ OSErr DragText(EventRecord *ev, Point where, short w, Boolean *dragged)
if (!WaitMouseMoved(ev->where)) return noErr; if (!WaitMouseMoved(ev->where)) return noErr;
*dragged = true; *dragged = true;
textH = RSGetTextSel(w, 0); textH = RSGetTextSel(w, 0, 1);
if ((textH == (char **)-1L) || (textH == nil)) { if ((textH == (char **)-1L) || (textH == nil)) {
textH = nil; textH = nil;

View File

@ -101,7 +101,7 @@ void otpgetselection(char *selection)
if ((i = RSfindvwind(FrontWindow())) < 0) return; // It had better be a text window... if ((i = RSfindvwind(FrontWindow())) < 0) return; // It had better be a text window...
if (!RSTextSelected(i)) return; // ...with something selected! if (!RSTextSelected(i)) return; // ...with something selected!
charh = RSGetTextSel(i, 0); // Get the text selection charh = RSGetTextSel(i, 0, 1); // Get the text selection
if (charh == (char **)-1L) OutOfMemory(400); if (charh == (char **)-1L) OutOfMemory(400);
if (charh != (char **)0L) { if (charh != (char **)0L) {