From: jpbruyere Date: Wed, 3 Feb 2016 00:58:31 +0000 (+0100) Subject: Gradient, Bitmap and Svg Filling X-Git-Tag: 0.3~76 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=59b2c3eb3f86031749882490520291848cf65581;p=jp%2Fcrow.git Gradient, Bitmap and Svg Filling --- 59b2c3eb3f86031749882490520291848cf65581 diff --cc src/SvgPicture.cs index 25531c9b,19ace4db..3b9529b7 --- a/src/SvgPicture.cs +++ b/src/SvgPicture.cs @@@ -96,10 -96,6 +96,11 @@@ namespace Cro gr.Scale (widthRatio, heightRatio); gr.Translate (((float)rect.Width/widthRatio - Dimensions.Width)/2f, ((float)rect.Height/heightRatio - Dimensions.Height)/2f); + if (string.IsNullOrEmpty (subPart)) + hSVG.RenderCairo (gr); + else - hSVG.RenderCairoSub (gr, "#" + subPart); ++ hSVG.RenderCairoSub (gr, "#" + subPart); ++ gr.Restore (); } }