[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/kpdf/core
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2005-01-08 17:23:48
Message-ID: 20050108172348.0D5DB1BC1D () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Better search of non latin-1 characters (2)


  M +1 -1      page.cpp   1.10


--- kdegraphics/kpdf/core/page.cpp  #1.9:1.10
@@ -127,5 +127,5 @@ bool KPDFPage::hasText( const QString & 
     {
         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);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic