Skip to content

Commit

Permalink
QPdfPaintEngine - Remove postscript flag
Browse files Browse the repository at this point in the history
Remove a now unneeded postscript flag.

Change-Id: I307e4a64aa7ba4eed396530ffbf3bca5ae73e9c2
Reviewed-by: Gunnar Sletta <[email protected]>
  • Loading branch information
jlayt authored and The Qt Project committed Jan 9, 2014
1 parent 62c4e28 commit c07c9bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/gui/painting/qpdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,6 @@ QPdfEnginePrivate::QPdfEnginePrivate()
leftMargin(10), topMargin(10), rightMargin(10), bottomMargin(10) // ~3.5 mm
{
resolution = 1200;
postscript = false;
currentObject = 1;
currentPage = 0;
stroker.stream = 0;
Expand Down Expand Up @@ -1520,7 +1519,6 @@ bool QPdfEngine::begin(QPaintDevice *pdev)
d->ownsDevice = true;
}

d->postscript = false;
d->currentObject = 1;

d->currentPage = new QPdfPage;
Expand Down Expand Up @@ -2506,8 +2504,8 @@ void QPdfEnginePrivate::drawTextItem(const QPointF &p, const QTextItemInt &ti)
QFontEngine::FaceId face_id = fe->faceId();
bool noEmbed = false;
if (face_id.filename.isEmpty()
|| (!postscript && ((fe->fsType & 0x200) /* bitmap embedding only */
|| (fe->fsType == 2) /* no embedding allowed */))) {
|| fe->fsType & 0x200 /* bitmap embedding only */
|| fe->fsType == 2 /* no embedding allowed */) {
*currentPage << "Q\n";
q->QPaintEngine::drawTextItem(p, ti);
*currentPage << "q\n";
Expand Down
1 change: 0 additions & 1 deletion src/gui/painting/qpdf_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ class Q_GUI_EXPORT QPdfEnginePrivate : public QPaintEnginePrivate

void newPage();

bool postscript;
int currentObject;

QPdfPage* currentPage;
Expand Down

0 comments on commit c07c9bc

Please sign in to comment.