From d6f777663c442a1944173cb8c74f3d9a64aceed2 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Mon, 15 Nov 2004 13:55:34 +0000 Subject: [PATCH] Bug 267650 - crash if is stroked and has fill='none'. Patch by jonathan.watt@strath.ac.uk, r=tor. --- layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp b/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp index 132d0a038ab..0fc40d027c6 100644 --- a/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp +++ b/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp @@ -396,14 +396,14 @@ nsSVGGDIPlusGlyphGeometry::Render(nsISVGRendererCanvas *canvas) mSource->GetStrokeOpacity(&opacity); nsCOMPtr aGrad; - if (filltype != nsISVGGeometrySource::PAINT_TYPE_SOLID_COLOR) + if (stroketype != nsISVGGeometrySource::PAINT_TYPE_SOLID_COLOR) mSource->GetStrokeGradient(getter_AddRefs(aGrad)); SolidBrush brush(Color((BYTE)(opacity*255), NS_GET_R(color), NS_GET_G(color), NS_GET_B(color))); if (sections.IsOnlySection() && !sections.IsHighlighted()) { // this is the 'normal' case - if (filltype == nsISVGGeometrySource::PAINT_TYPE_SOLID_COLOR) { + if (stroketype == nsISVGGeometrySource::PAINT_TYPE_SOLID_COLOR) { gdiplusCanvas->GetGraphics()->FillPath(&brush, mStroke); } else { nsCOMPtr region;