diff options
Diffstat (limited to 'poppler/Gfx.cc')
-rw-r--r-- | poppler/Gfx.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index 919086e0..7b85d79a 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -1533,6 +1533,8 @@ void Gfx::opSetFillColorN(Object args[], int numArgs) { for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { if (args[i].isNum()) { color.c[i] = dblToCol(args[i].getNum()); + } else { + color.c[i] = 0; // TODO Investigate if this is what Adobe does } } state->setFillColor(&color); @@ -1552,6 +1554,8 @@ void Gfx::opSetFillColorN(Object args[], int numArgs) { for (i = 0; i < numArgs && i < gfxColorMaxComps; ++i) { if (args[i].isNum()) { color.c[i] = dblToCol(args[i].getNum()); + } else { + color.c[i] = 0; // TODO Investigate if this is what Adobe does } } state->setFillColor(&color); @@ -1576,6 +1580,8 @@ void Gfx::opSetStrokeColorN(Object args[], int numArgs) { for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { if (args[i].isNum()) { color.c[i] = dblToCol(args[i].getNum()); + } else { + color.c[i] = 0; // TODO Investigate if this is what Adobe does } } state->setStrokeColor(&color); @@ -1595,6 +1601,8 @@ void Gfx::opSetStrokeColorN(Object args[], int numArgs) { for (i = 0; i < numArgs && i < gfxColorMaxComps; ++i) { if (args[i].isNum()) { color.c[i] = dblToCol(args[i].getNum()); + } else { + color.c[i] = 0; // TODO Investigate if this is what Adobe does } } state->setStrokeColor(&color); |