diff --git a/kpdf/QOutputDev.h b/kpdf/QOutputDev.h index 7493c1cd6a3fdf6eb26e9cccac2710486e68fb26..88ab4e64157307a691a771e705c13c73a62a194d 100644 --- a/kpdf/QOutputDev.h +++ b/kpdf/QOutputDev.h @@ -18,6 +18,7 @@ #include #include +#include class Object; @@ -174,7 +175,7 @@ private: void updateLineAttrs ( GfxState *state, GBool updateDash ); void doFill ( GfxState *state, bool winding ); void doClip ( GfxState *state, bool winding ); - int convertPath ( GfxState *state, QPointArray &points, QArray &lengths ); + int convertPath ( GfxState *state, QPointArray &points, QMemArray &lengths ); int convertSubpath ( GfxState *state, GfxSubpath *subpath, QPointArray &points ); }; diff --git a/kpdf/QOutputDevPixmap.cpp b/kpdf/QOutputDevPixmap.cpp index d2562524d5e7ae5fd25fe8d01b17d27c5e42de3f..969af8aa271b8457bf1b265e7330028ef1b7706f 100644 --- a/kpdf/QOutputDevPixmap.cpp +++ b/kpdf/QOutputDevPixmap.cpp @@ -386,7 +386,7 @@ void QOutputDevPixmap::updateFont ( GfxState *state ) void QOutputDevPixmap::stroke ( GfxState *state ) { QPointArray points; - QArray lengths; + QMemArray lengths; // transform points int n = convertPath ( state, points, lengths ); @@ -433,7 +433,7 @@ void QOutputDevPixmap::eoFill ( GfxState *state ) void QOutputDevPixmap::doFill ( GfxState *state, bool winding ) { QPointArray points; - QArray lengths; + QMemArray lengths; // transform points int n = convertPath ( state, points, lengths ); @@ -476,7 +476,7 @@ void QOutputDevPixmap::eoClip ( GfxState *state ) void QOutputDevPixmap::doClip ( GfxState *state, bool winding ) { QPointArray points; - QArray lengths; + QMemArray lengths; // transform points int n = convertPath ( state, points, lengths ); @@ -525,7 +525,7 @@ void QOutputDevPixmap::doClip ( GfxState *state, bool winding ) // Then it connects subaths within a single compound polygon to a single // point so that X can fill the polygon (sort of). // -int QOutputDevPixmap::convertPath ( GfxState *state, QPointArray &points, QArray &lengths ) +int QOutputDevPixmap::convertPath ( GfxState *state, QPointArray &points, QMemArray &lengths ) { GfxPath *path = state-> getPath ( ); int n = path-> getNumSubpaths ( ); diff --git a/kpdf/QOutputDevPixmap.h b/kpdf/QOutputDevPixmap.h index a366dc36c30d567d8e8934849b683dd804732bf1..d6911db4c4486c97bf53954bc9ae6275d63542c7 100644 --- a/kpdf/QOutputDevPixmap.h +++ b/kpdf/QOutputDevPixmap.h @@ -176,7 +176,7 @@ private: void updateLineAttrs ( GfxState *state, GBool updateDash ); void doFill ( GfxState *state, bool winding ); void doClip ( GfxState *state, bool winding ); - int convertPath ( GfxState *state, QPointArray &points, QArray &lengths ); + int convertPath ( GfxState *state, QPointArray &points, QMemArray &lengths ); int convertSubpath ( GfxState *state, GfxSubpath *subpath, QPointArray &points ); };