Fixed broken lookup of fallback fonts on qpa
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 17 Aug 2011 04:47:42 +0000 (14:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 18 Aug 2011 23:21:13 +0000 (01:21 +0200)
commit1e0d1c5f2996da33db1e3e4c1f7c6ef3e1f29416
tree74bfdea5132323d9d1db36d1a34579655522f8d9
parentb0c1c98f76e2006a67da0b8455b44205753be30b
Fixed broken lookup of fallback fonts on qpa

Loading of fallback fonts from the font cache was broken.
While iterating through fallback fonts, we would incorrectly skip any
fonts which were already in the cache.  This would cause unstable lookup
results for some fonts, depending on the order in which fonts were
loaded during the current process.

Change-Id: I56a6a07e93196ed14f33f4cc181e41c5b8f19498
Reviewed-on: http://codereview.qt.nokia.com/3059
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/gui/text/qfontdatabase_qpa.cpp