~ubuntu-multiseat/ubuntu/saucy/unity-greeter/bug1201122

« back to all changes in this revision

Viewing changes to src/cached-image.vala

Tags: upstream-12.10.3
ImportĀ upstreamĀ versionĀ 12.10.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    public override bool draw (Cairo.Context c)
47
47
    {
48
 
        var cached_surface = get_cached_surface (c, pixbuf);
49
 
        if (cached_surface != null)
 
48
        if (pixbuf != null)
50
49
        {
51
 
            c.set_source_surface (cached_surface, 0, 0);
52
 
            c.paint ();
 
50
            var cached_surface = get_cached_surface (c, pixbuf);
 
51
            if (cached_surface != null)
 
52
            {
 
53
                c.set_source_surface (cached_surface, 0, 0);
 
54
                c.paint ();
 
55
            }
53
56
        }
54
57
        return false;
55
58
    }