~ubuntu-branches/ubuntu/utopic/monodevelop/utopic

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components.Chart/BasicChart.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-10-10 14:50:04 UTC
  • mfrom: (10.3.4)
  • Revision ID: package-import@ubuntu.com-20131010145004-80l130sny21b17sb
Tags: 4.0.12+dfsg-1
* [5dcb6e1] Fix debian/watch for new source tarball name format
* [5c68cb5] Refresh list of files removed by get-orig-source to 
  reflect 4.0.12
* [96d60a0] Imported Upstream version 4.0.12+dfsg
* [b989752] Refresh debian/patches/no_appmenu to ensure it applies
* [2a4c351] Ensure every assembly in external/ is cleaned properly
* [92762f7] Add more excluded Mac-specific modulerefs
* [bc698ba] Add symlinks to NUnit assemblies (Closes: #714246)

Show diffs side-by-side

added added

removed removed

Lines of Context:
409
409
 
410
410
                        if (backgroundDisplay == BackgroundDisplay.Gradient) {
411
411
                                ctx.Rectangle (left - 1, top - 1, width + 2, height + 2);
412
 
                                Cairo.Gradient pat = new Cairo.LinearGradient (left - 1, top - 1, left - 1, height + 2);
413
 
                                pat.AddColorStop (0, backroundColor);
414
 
                                Cairo.Color endc = new Cairo.Color (1,1,1);
415
 
                                pat.AddColorStop (1, endc);
416
 
                                ctx.Pattern = pat;
417
 
                                ctx.Fill ();
 
412
                                using (var pat = new Cairo.LinearGradient (left - 1, top - 1, left - 1, height + 2)) {
 
413
                                        pat.AddColorStop (0, backroundColor);
 
414
                                        Cairo.Color endc = new Cairo.Color (1,1,1);
 
415
                                        pat.AddColorStop (1, endc);
 
416
                                        ctx.Pattern = pat;
 
417
                                        ctx.Fill ();
 
418
                                }
418
419
                        } else {
419
420
                                ctx.Rectangle (left - 1, top - 1, width + 2, height + 2);
420
421
                                ctx.Color = backroundColor;