[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:13:36
Message-ID: 20050108171336.D775E1B929 () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Better search of non latin-1 characters


  M +2 -2      page.cpp   1.9


--- kdegraphics/kpdf/core/page.cpp  #1.8:1.9
@@ -117,9 +117,9 @@ bool KPDFPage::hasText( const QString & 
         return false;
 
-    const char * str = text.latin1();
+    const QChar* str = text.unicode();
     int len = text.length();
     Unicode *u = (Unicode *)gmalloc(len * sizeof(Unicode));
     for (int i = 0; i < len; ++i)
-        u[i] = (Unicode) str[i];
+        u[i] = str[i].unicode();
 
     bool found = m_text->findText( u, len, fromTop ? gTrue : gFalse, gTrue, fromTop \
? gFalse : gTrue, gFalse, &m_sLeft, &m_sTop, &m_sRight, &m_sBottom );


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

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