diff options
author | Albert Astals Cid <aacid@kde.org> | 2014-09-30 19:50:20 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2014-09-30 19:50:20 +0200 |
commit | ce95ecda450361496aedd5d5cd0bf47fd2c66703 (patch) | |
tree | fbe56fa753c31276d8bef09b91ab6735e3822a45 | |
parent | 01723aa17e836e818158dbdc56df642a290be300 (diff) |
Fix assert in 5068.asan.0.6052.pdf
-rw-r--r-- | poppler/Gfx.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 90bf41e4..6bf7ec54 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -980,7 +980,10 @@ void Gfx::opSetDash(Object args[], int numArgs) { } else { dash = (double *)gmallocn(length, sizeof(double)); for (i = 0; i < length; ++i) { - dash[i] = a->get(i, &obj)->getNum(); + a->get(i, &obj); + if (obj.isNum()) { + dash[i] = obj.getNum(); + } obj.free(); } } |