From f59b85a1dcfbd6c4afc31113e82f4d522b5e1ba5 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Thu, 29 Oct 2009 01:41:53 +0000 Subject: [PATCH] Initialize bounds, ensuring there are valid bounds even for a shape with no strokes. --- src/SWFShapeMaker.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SWFShapeMaker.cpp b/src/SWFShapeMaker.cpp index 13214ab..f2e89d1 100644 --- a/src/SWFShapeMaker.cpp +++ b/src/SWFShapeMaker.cpp @@ -15,9 +15,10 @@ ShapeMaker::ShapeMaker( List* e, double fx, double fy, double ofsx, d factory = fy; offsetx = ofsx; offsety = ofsy; - diffx = diffy = 0; - lastx = lasty = 0; - smoothx = smoothy = 0; + diffx = diffy = 0.0; + lastx = lasty = 0.0; + smoothx = smoothy = 0.0; + minx = miny = maxx = maxy = 0.0; have_first = false; fillStyle0 = lineStyle = fillStyle1 = -1;