Make Count command respect Backward-direction and Wrap-around options

Fix #7876, close #7917
This commit is contained in:
Scott Sumner 2020-02-05 09:41:35 -05:00 committed by Don HO
parent 4cc6215e63
commit 4eac7d8e94
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -1884,7 +1884,7 @@ int FindReplaceDlg::processAll(ProcessOperation op, const FindOption *opt, bool
startPosition = cr.cpMin;
endPosition = cr.cpMax;
}
else if (pOptions->_isWrapAround || isEntire || op == ProcessCountAll) //entire document needs to be scanned
else if (pOptions->_isWrapAround || isEntire) //entire document needs to be scanned
{
startPosition = 0;
endPosition = docLength;