Code

restore the pattern from clipboard ability
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 29 Mar 2009 22:23:35 +0000 (22:23 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 29 Mar 2009 22:23:35 +0000 (22:23 +0000)
src/draw-context.cpp

index f90f033f376b62d5b35c988ef42ccdd3e97092ca..d2794f0c2b6f1eed9e7444f01df145d15eb004a7 100644 (file)
@@ -359,7 +359,7 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item)
             case 4:
             {
                 // take shape from clipboard; TODO: catch the case where clipboard is empty
-                Effect::createAndApply(FREEHAND_SHAPE, dc->desktop->doc(), item);
+                Effect::createAndApply(PATTERN_ALONG_PATH, dc->desktop->doc(), item);
                 Effect* lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
                 static_cast<LPEPatternAlongPath*>(lpe)->pattern.on_paste_button_click();