From ec8aca9dae1747436cfa1211eb3ed484115b63c1 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. git-svn-id: svn://10.0.0.236/trunk@165366 18797224-902f-48f8-a5cc-f745e15eee43 --- .../svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp b/mozilla/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp index 132d0a038ab..0fc40d027c6 100644 --- a/mozilla/layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphGeometry.cpp +++ b/mozilla/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;