[poppler] 3 commits - poppler/ArthurOutputDev.cc

Pino Toscano pino at kemper.freedesktop.org
Fri Mar 5 13:22:19 PST 2010


 poppler/ArthurOutputDev.cc |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

New commits:
commit 0425ff835fa26df5e25e628a6c56f3a180713905
Author: Pino Toscano <pino at kde.org>
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 <bradh at frogmouth.net>
 // Copyright (C) 2005-2009 Albert Astals Cid <aacid at kde.org>
-// Copyright (C) 2008 Pino Toscano <pino at kde.org>
+// Copyright (C) 2008, 2010 Pino Toscano <pino at kde.org>
 // Copyright (C) 2009 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2009 Petr Gajdos <pgajdos at novell.com>
 //
commit c5ea135ca58e112110be3ae10d887f3188172765
Author: Pino Toscano <pino at kde.org>
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 <pino at kde.org>
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)


More information about the poppler mailing list