summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-02 15:55:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-02 20:08:23 +0000
commitd5ffe20b47b63cb82740598ede83a3951db1b178 (patch)
tree78d93438f08d359bd0551fad14fd8bfabd5d5c85
parent89d4eb66bacaf5c0518ae45a3bb98b159bb42a7b (diff)
coverity#735989 Dereference after null check
Change-Id: I668c8340777e21a7b829bd4e26ba4226da98a566
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index b453696c99d7..e3a293c970c5 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -237,7 +237,7 @@ GraphiteLayout::fillFrom(gr_segment * pSegment, ImplLayoutArgs &rArgs, float fSc
float rightBoundary = (clusterAfter)?
gr_slot_origin_X(clusterAfter) : gr_seg_advance_X(pSegment);
if (
- lastChar < iChar &&
+ lastChar < iChar && clusterAfter &&
(gr_cinfo_after(gr_seg_cinfo(pSegment, iChar)) >
static_cast<int>(gr_slot_index(clusterAfter)))
)