From 8ad3a92202bf2d44a66e5e2f81b0b624971861e0 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 2 Mar 2010 21:49:34 -0800 Subject: [PATCH] Fix color swatch drag preview. --- src/ui/dialog/swatches.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/dialog/swatches.cpp b/src/ui/dialog/swatches.cpp index cd6bef05a..f38f42b4b 100644 --- a/src/ui/dialog/swatches.cpp +++ b/src/ui/dialog/swatches.cpp @@ -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]; -- 2.30.2