summaryrefslogtreecommitdiff
path: root/poppler/Gfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/Gfx.cc')
-rw-r--r--poppler/Gfx.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index ec2b4b35..c5d47443 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -946,10 +946,8 @@ void Gfx::opSetDash(Object args[], int numArgs) {
dash = nullptr;
} else {
dash = (double *)gmallocn(length, sizeof(double));
- bool dummyOk;
for (i = 0; i < length; ++i) {
- const Object obj = a->get(i);
- dash[i] = obj.getNum(&dummyOk);
+ dash[i] = a->get(i).getNumWithDefaultValue(0);
}
}
state->setLineDash(dash, length, args[1].getNum());