Commit 50e3519f authored by Albert Astals Cid's avatar Albert Astals Cid

Fix off by one error on setting the search boundary limits

Fix researched by Christopher Reichert
Will backport to 4.6 if works fine in trunk for a while
BUGS: 266535

svn path=/trunk/KDE/kdegraphics/okular/; revision=1224201
parent b9710a3c
......@@ -510,7 +510,7 @@ RegularAreaRect* TextPagePrivate::findTextInternalForward( int searchID, const Q
}
SearchPoint* sp = *sIt;
sp->it_begin = it_begin;
sp->it_end = it;
sp->it_end = it - 1;
sp->offset_begin = j;
sp->offset_end = j + qMin( queryLeft, len );
ret->simplify();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment