diff options
author | Tobias Koenig <tobias.koenig@kdab.com> | 2017-03-24 13:51:36 +0100 |
---|---|---|
committer | Tobias Koenig <tobias.koenig@kdab.com> | 2017-03-28 07:01:30 +0000 |
commit | 781b5a6198aef300bb8f1fdc6681d4756001d3b4 (patch) | |
tree | 417d72414de627f30aa98741e89619594e2bc4c8 | |
parent | d3fd3171ce22f0974d571e91f2df6e2a98368081 (diff) |
Fix generation of gradient shader function in PDF
Add the missing endobj tag for the shader function object.
Change-Id: Ieb3cfa5a5d0e27d04164a80b028d41371507fb94
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r-- | src/gui/painting/qpdf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index 84e18a64dd..7b53966f81 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -2073,7 +2073,8 @@ int QPdfEnginePrivate::createShadingFunction(const QGradient *gradient, int from for (int i = 0; i < gradientBounds.size(); ++i) s << gradientBounds.at(i).function << "0 R "; s << "]\n" - ">>\n"; + ">>\n" + "endobj\n"; write(data); } else { function = functions.at(0); |