X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwengineoutput.c;h=d3a673fe444a007f1aa791b7bc08be0ff8c78a15;hb=c37d45adc7d98a702a7459ccdc0ac23df01a476e;hp=f2c0e569427d8f68709de4f7ec96f2f583a3888c;hpb=56310c5b198bc521e0a715377c68378b7bcf10a5;p=xboard.git diff --git a/winboard/wengineoutput.c b/winboard/wengineoutput.c index f2c0e56..d3a673f 100644 --- a/winboard/wengineoutput.c +++ b/winboard/wengineoutput.c @@ -5,6 +5,8 @@ * * Copyright 2005 Alessandro Scotti * + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -237,7 +239,7 @@ GetMemoLine(HWND hDlg, int x, int y) memo = currentPV ? IDC_EngineMemo2 : IDC_EngineMemo1; index = SendDlgItemMessage( hDlg, memo, EM_CHARFROMPOS, 0, (LPARAM) &pt ); GetDlgItemText(hDlg, memo, buf, sizeof(buf)); - if(LoadMultiPV(x, y, buf, index, &start, &end)) { + if(LoadMultiPV(x, y, buf, index, &start, &end, currentPV)) { SetCapture(hDlg); SendMessage( outputField[currentPV][nMemo], EM_SETSEL, (WPARAM)start, (LPARAM)end ); highTextStart[currentPV] = start; highTextEnd[currentPV] = end;