Code

add missed paint type assignment, fixes crash with no fill/no stroke on selected...
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 10 Sep 2007 20:45:38 +0000 (20:45 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 10 Sep 2007 20:45:38 +0000 (20:45 +0000)
src/desktop-style.cpp

index a68c99d65c887ed3e095a9876e15eceaaa88e019..b1dca7f17e209a7faa8a4f668812c6c6610c4b52 100644 (file)
@@ -515,7 +515,9 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill
             num ++;
         }
 
-        paintImpossible = false;
+       paintImpossible = false;
+       paint_res->colorSet = paint->colorSet;
+       paint_res->currentcolor = paint->currentcolor;
        if (paint_res->set && paint_effectively_set && paint->isPaintserver()) { // copy the server
            if (isfill) {
                sp_style_set_to_uri_string (style_res, true, style->getFillURI());