PdfImage is a PdfXObject
---
 src/doc/PdfPainter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/doc/PdfPainter.cpp b/src/doc/PdfPainter.cpp
index 03a5d05..fc5c0de 100644
--- a/src/doc/PdfPainter.cpp
+++ b/src/doc/PdfPainter.cpp
@@ -1320,7 +1320,7 @@ void PdfPainter::DrawGlyph( PdfMemDocument* pDocument, 
double dX, double dY, con
void PdfPainter::DrawImage( double dX, double dY, PdfImage* pObject, double dScaleX, double dScaleY )
 {
-    this->DrawXObject( dX, dY, reinterpret_cast<PdfXObject*>(pObject),
+    this->DrawXObject( dX, dY, pObject,
                        dScaleX * pObject->GetPageSize().GetWidth(),
                        dScaleY * pObject->GetPageSize().GetHeight() );
 }
--
2.16.1.windows.1



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to