]> O.S.I.I.S - jp/crow.git/commitdiff
Gradient, Bitmap and Svg Filling
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 3 Feb 2016 00:58:31 +0000 (01:58 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 3 Feb 2016 01:05:42 +0000 (02:05 +0100)
1  2 
src/SvgPicture.cs

index 25531c9bb31e47a36edfb00e5f0d18373165f6a1,19ace4db5a1683ffeb9ae7d1b4ae092c731e2fe6..3b9529b76f4f5bd84410d72f807c8423ff696ff3
@@@ -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);
  
-                               hSVG.RenderCairoSub (gr, "#" + subPart);                        
 +                      if (string.IsNullOrEmpty (subPart))
 +                              hSVG.RenderCairo (gr);
 +                      else
++                              hSVG.RenderCairoSub (gr, "#" + subPart);
++                      
                        gr.Restore ();                  
                }
        }