Commit 9f39bfb7 authored by Albert Astals Cid's avatar Albert Astals Cid

Better search of non latin-1 characters (2)

svn path=/trunk/kdegraphics/kpdf/; revision=376534
parent b901d81b
......@@ -126,7 +126,7 @@ bool KPDFPage::hasText( const QString & text, bool strictCase, bool fromTop )
if( found && strictCase )
{
GString * orig = m_text->getText( m_sLeft, m_sTop, m_sRight, m_sBottom );
found = !strcmp( text.latin1(), orig->getCString() );
found = QString::fromUtf8( orig->getCString() ) == text;
}
gfree(u);
return found;
......
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