mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Add a note why we can't use rightRef
This commit is contained in:
parent
d6c1ead1b0
commit
12ab23e631
|
@ -985,8 +985,8 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
|
|||
// entity
|
||||
|
||||
int resStrLen = 0, resQueryLen = 0;
|
||||
int offset = len - min;
|
||||
|
||||
// Note len is not str.length() so we can't use rightRef here
|
||||
const int offset = len - min;
|
||||
if ( !comparer( str.midRef(offset, min ), query.midRef( j - min + 1, min ),
|
||||
&resStrLen, &resQueryLen ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue