diff options
author | suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp> | 2011-08-12 18:22:30 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-08-18 09:02:53 (GMT) |
commit | 81f0c44f6a4fd4cfa41af5d5b292008185bf3981 (patch) | |
tree | 376f0029464338d17addb55ee74b4f387bf2852b /src/gui/painting/qpaintengine_x11.cpp | |
parent | d9b8c530fceced62ab620307f399c3e985640282 (diff) | |
download | Qt-81f0c44f6a4fd4cfa41af5d5b292008185bf3981.zip Qt-81f0c44f6a4fd4cfa41af5d5b292008185bf3981.tar.gz Qt-81f0c44f6a4fd4cfa41af5d5b292008185bf3981.tar.bz2 |
Replace 'i < len-1 && func(i+1)' by 'i+1 < len && func(i+1)'
Merge-request: 1299
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/gui/painting/qpaintengine_x11.cpp')
-rw-r--r-- | src/gui/painting/qpaintengine_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp index 147d2ec..17d141c 100644 --- a/src/gui/painting/qpaintengine_x11.cpp +++ b/src/gui/painting/qpaintengine_x11.cpp @@ -2333,7 +2333,7 @@ static QPainterPath path_for_glyphs(const QVarLengthArray<glyph_t> &glyphs, bool set = src[x >> 3] & (0x80 >> (x & 7)); if (set) { QRect r(xp + x, yp - h, 1, 1); - while (x < glyph->width-1 && src[(x+1) >> 3] & (0x80 >> ((x+1) & 7))) { + while (x+1 < glyph->width && src[(x+1) >> 3] & (0x80 >> ((x+1) & 7))) { ++x; r.setRight(r.right()+1); } |