Code

Fix color swatch drag preview.
authorJon A. Cruz <jon@joncruz.org>
Wed, 3 Mar 2010 05:49:34 +0000 (21:49 -0800)
committerJon A. Cruz <jon@joncruz.org>
Wed, 3 Mar 2010 05:49:34 +0000 (21:49 -0800)
src/ui/dialog/swatches.cpp

index cd6bef05a93d81e0045f626de3e4363fe7fabd88..f38f42b4bfb8b9ee0e65dd513d1abf8f53aa8693 100644 (file)
@@ -275,6 +275,7 @@ static void dragBegin( GtkWidget */*widget*/, GdkDragContext* dc, gpointer data
                     | (0x0000ff00 & (item->def.getB() <<  8));
                 thumb->fill( fillWith );
                 pixbuf = thumb->gobj();
+                g_object_ref(G_OBJECT(pixbuf));
             } else {
                 SPGradient* grad = gradMap[item];