From: cilix42 Date: Thu, 12 Jun 2008 13:29:54 +0000 (+0000) Subject: whitespace X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d7e43efbcb4e431ff2fc52941513cc1bd614afa5;p=inkscape.git whitespace --- diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 18d05fe67..6103a3d18 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -174,7 +174,7 @@ Effect::createAndApply(const char* name, SPDocument *doc, SPItem *item) sp_lpe_item_add_path_effect(SP_LPE_ITEM(item), href, true); g_free(href); - sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, + sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Create and apply path effect")); } diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp index cf6d1cecd..9e7b5d8ea 100644 --- a/src/live_effects/lpe-perspective_path.cpp +++ b/src/live_effects/lpe-perspective_path.cpp @@ -69,7 +69,7 @@ LPEPerspectivePath::~LPEPerspectivePath() void LPEPerspectivePath::doBeforeEffect (SPLPEItem *lpeitem) { - original_bbox(lpeitem, true); + original_bbox(lpeitem, true); } Geom::Piecewise > @@ -128,7 +128,7 @@ LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise > cons + preimage[2] * tmat[j][2] + tmat[j][3]; } - D2 > result(divide(res[0],res[2], 3), + D2 > result(divide(res[0],res[2], 3), divide(res[1],res[2], 3)); Piecewise > output = sectionize(result); diff --git a/src/live_effects/lpe-spiro.cpp b/src/live_effects/lpe-spiro.cpp index bbf952e19..e43efc01a 100644 --- a/src/live_effects/lpe-spiro.cpp +++ b/src/live_effects/lpe-spiro.cpp @@ -168,8 +168,8 @@ LPESpiro::doEffect(SPCurve * curve) double this_angle_L2 = NR::L2(this_angle); double next_angle_L2 = NR::L2(next_angle); double both_angles_L2 = NR::L2(this_angle + next_angle); - if (this_angle_L2 > 1e-6 && - next_angle_L2 > 1e-6 && + if (this_angle_L2 > 1e-6 && + next_angle_L2 > 1e-6 && this_angle_L2 + next_angle_L2 - both_angles_L2 < 1e-3) { if (this_is_line && !next_is_line) { path[ip].ty = ']'; diff --git a/src/live_effects/lpe-tangent_to_curve.cpp b/src/live_effects/lpe-tangent_to_curve.cpp index 9fbe426a5..6ca785001 100644 --- a/src/live_effects/lpe-tangent_to_curve.cpp +++ b/src/live_effects/lpe-tangent_to_curve.cpp @@ -144,7 +144,7 @@ KnotHolderEntityLeftEnd::knot_set(NR::Point const &p, NR::Point const &/*origin* double lambda = Geom::nearest_point(p.to_2geom(), lpe->ptA, lpe->derivA); lpe->length_left.param_set_value(-lambda); - sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); + sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); } void @@ -155,7 +155,7 @@ KnotHolderEntityRightEnd::knot_set(NR::Point const &p, NR::Point const &/*origin double lambda = Geom::nearest_point(p.to_2geom(), lpe->ptA, lpe->derivA); lpe->length_right.param_set_value(lambda); - sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); + sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); } NR::Point diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 9013eb863..470e97d19 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -444,7 +444,7 @@ void sp_lpe_item_add_path_effect(SPLPEItem *lpeitem, gchar *value, bool reset) lpe->resetDefaults(lpeitem); } - // perform this once when the effect is applied + // perform this once when the effect is applied lpe->doOnApply(SP_LPE_ITEM(lpeitem)); // if the effect expects a number of mouse clicks to set a parameter path, perform the