poppler/ArthurOutputDev.cc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
New commits: commit 0425ff835fa26df5e25e628a6c56f3a180713905 Author: Pino Toscano <[email protected]> Date: Fri Mar 5 22:21:56 2010 +0100 update copyright diff --git a/poppler/ArthurOutputDev.cc b/poppler/ArthurOutputDev.cc index 8817d90..821b84e 100644 --- a/poppler/ArthurOutputDev.cc +++ b/poppler/ArthurOutputDev.cc @@ -15,7 +15,7 @@ // // Copyright (C) 2005 Brad Hards <[email protected]> // Copyright (C) 2005-2009 Albert Astals Cid <[email protected]> -// Copyright (C) 2008 Pino Toscano <[email protected]> +// Copyright (C) 2008, 2010 Pino Toscano <[email protected]> // Copyright (C) 2009 Carlos Garcia Campos <[email protected]> // Copyright (C) 2009 Petr Gajdos <[email protected]> // commit c5ea135ca58e112110be3ae10d887f3188172765 Author: Pino Toscano <[email protected]> Date: Fri Mar 5 22:14:57 2010 +0100 [arthur] update the miter limit diff --git a/poppler/ArthurOutputDev.cc b/poppler/ArthurOutputDev.cc index 09f14dc..8817d90 100644 --- a/poppler/ArthurOutputDev.cc +++ b/poppler/ArthurOutputDev.cc @@ -218,8 +218,8 @@ void ArthurOutputDev::updateLineCap(GfxState *state) void ArthurOutputDev::updateMiterLimit(GfxState *state) { - // We can't do mitre (or Miter) limit with Qt4 yet. - // the limit is in state->getMiterLimit() when we get there + m_currentPen.setMiterLimit(state->getMiterLimit()); + m_painter->setPen(m_currentPen); } void ArthurOutputDev::updateLineWidth(GfxState *state) commit 552f344b3e3df7c796afa6946149b0a5590cc4f7 Author: Pino Toscano <[email protected]> Date: Fri Mar 5 22:04:39 2010 +0100 [arthur] update the line dash style diff --git a/poppler/ArthurOutputDev.cc b/poppler/ArthurOutputDev.cc index b3b8dd0..09f14dc 100644 --- a/poppler/ArthurOutputDev.cc +++ b/poppler/ArthurOutputDev.cc @@ -166,7 +166,17 @@ void ArthurOutputDev::updateCTM(GfxState *state, double m11, double m12, void ArthurOutputDev::updateLineDash(GfxState *state) { - // qDebug() << "updateLineDash"; + double *dashPattern; + int dashLength; + double dashStart; + state->getLineDash(&dashPattern, &dashLength, &dashStart); + QVector<qreal> pattern(dashLength); + for (int i = 0; i < dashLength; ++i) { + pattern[i] = dashPattern[i]; + } + m_currentPen.setDashPattern(pattern); + m_currentPen.setDashOffset(dashStart); + m_painter->setPen(m_currentPen); } void ArthurOutputDev::updateFlatness(GfxState *state) _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
