summaryrefslogtreecommitdiff
authorhash <hash>2002-10-07 04:02:38 (UTC)
committer hash <hash>2002-10-07 04:02:38 (UTC)
commit099bf9c07cc08d50c9637e55a1dd89d9e4b5e9b8 (patch) (unidiff)
treee6050816cfec4470618189cbc4d0d574154aed34
parentd2dc4dc0658f331b7f3d4d1aaf69645b4b02d690 (diff)
downloadopie-099bf9c07cc08d50c9637e55a1dd89d9e4b5e9b8.zip
opie-099bf9c07cc08d50c9637e55a1dd89d9e4b5e9b8.tar.gz
opie-099bf9c07cc08d50c9637e55a1dd89d9e4b5e9b8.tar.bz2
fixed the qt 2.3.4 font size change
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/FontControl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/FontControl.h b/noncore/apps/opie-reader/FontControl.h
index ed6c33f..d427680 100644
--- a/noncore/apps/opie-reader/FontControl.h
+++ b/noncore/apps/opie-reader/FontControl.h
@@ -100,17 +100,17 @@ class FontControl
100 m_fontname = n; 100 m_fontname = n;
101 m_maxsize = sizes.count(); 101 m_maxsize = sizes.count();
102 if (m_fontsizes != NULL) delete [] m_fontsizes; 102 if (m_fontsizes != NULL) delete [] m_fontsizes;
103 m_fontsizes = new int[m_maxsize]; 103 m_fontsizes = new int[m_maxsize];
104 uint i = 0; 104 uint i = 0;
105 uint best = 0; 105 uint best = 0;
106 for (it = sizes.begin(); it != sizes.end(); it++) 106 for (it = sizes.begin(); it != sizes.end(); it++)
107 { 107 {
108 m_fontsizes[i] = (*it)/10; 108 m_fontsizes[i] = (*it);
109 if (abs(tgt-m_fontsizes[i]) < abs(tgt-m_fontsizes[best])) 109 if (abs(tgt-m_fontsizes[i]) < abs(tgt-m_fontsizes[best]))
110 { 110 {
111 best = i; 111 best = i;
112 } 112 }
113 i++; 113 i++;
114 } 114 }
115 m_size = best; 115 m_size = best;
116 } 116 }