mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Do not ignore (white)spaces in the search query when searching within the text of a page;
search verbatim in the text page, while any other change in the query should be done at a Document level. BUG: 172244 svn path=/trunk/KDE/kdegraphics/okular/; revision=873277
This commit is contained in:
parent
06ef6b06dd
commit
7183c172c2
|
@ -381,7 +381,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalForward( int searchID, const Q
|
|||
int j=0, len=0, queryLeft=query.length();
|
||||
int offset = 0;
|
||||
bool haveMatch=false;
|
||||
bool dontIncrement=false;
|
||||
bool offsetMoved = false;
|
||||
TextList::ConstIterator it = start;
|
||||
TextList::ConstIterator it_begin;
|
||||
|
@ -397,22 +396,7 @@ RegularAreaRect* TextPagePrivate::findTextInternalForward( int searchID, const Q
|
|||
}
|
||||
offsetMoved = true;
|
||||
}
|
||||
if ( query.at(j).isSpace() )
|
||||
{
|
||||
// lets match newline as a space
|
||||
#ifdef DEBUG_TEXTPAGE
|
||||
kDebug(OkularDebug) << "newline or space";
|
||||
#endif
|
||||
j++;
|
||||
queryLeft--;
|
||||
// since we do not really need to increment this after this
|
||||
// run of the loop finishes because we are not comparing it
|
||||
// to any entity, rather we are deducing a situation in a document
|
||||
dontIncrement=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
dontIncrement=false;
|
||||
len=str.length();
|
||||
int min=qMin(queryLeft,len);
|
||||
#ifdef DEBUG_TEXTPAGE
|
||||
|
|
Loading…
Reference in a new issue