From: Jon A. Cruz Date: Wed, 3 Mar 2010 05:49:34 +0000 (-0800) Subject: Fix color swatch drag preview. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8ad3a92202bf2d44a66e5e2f81b0b624971861e0;p=inkscape.git Fix color swatch drag preview. --- 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];