summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index bb8f0a84b8fb..97f6e01920eb 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -693,7 +693,12 @@ namespace cppcanvas
case EmfPlusObjectTypeImage:
{
EMFPImage *image;
- aObjects [index] = image = new EMFPImage ();
+ aObjects [index] = image = new EMFPImage;
+ image->type = 0;
+ image->width = 0;
+ image->height = 0;
+ image->stride = 0;
+ image->pixelFormat = 0;
image->Read (rObjectStream, dataSize, bUseWholeStream);
break;
@@ -701,7 +706,10 @@ namespace cppcanvas
case EmfPlusObjectTypeFont:
{
EMFPFont *font;
- aObjects [index] = font = new EMFPFont ();
+ aObjects [index] = font = new EMFPFont;
+ font->emSize = 0;
+ font->sizeUnit = 0;
+ font->fontFlags = 0;
font->Read (rObjectStream);
break;