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;