Do not ignore spaces on backwards search

This ports a change we made to the forward search 4 years ago...
7183c172c2 for more reference

BUGS: 311232
FIXED-IN: 4.9.5
remotes/origin/KDE/4.9
Albert Astals Cid 13 years ago
parent d90db4502a
commit 2002e0a4b0
  1. 10
      core/textpage.cpp

@ -981,16 +981,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
{
offsetMoved = true;
}
if ( query.at(j).isSpace() )
{
// lets match newline as a space
#ifdef DEBUG_TEXTPAGE
kDebug(OkularDebug) << "newline or space";
#endif
j--;
queryLeft--;
}
else
{
len = stringLengthAdaptedWithHyphen(str, it, m_words.constEnd(), m_page);
int min=qMin(queryLeft,len);

Loading…
Cancel
Save