diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-17 23:20:30 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-17 23:20:30 +0000 |
| commit | 20124293ed6d8a13ebbcce7a184a8fd6af324bac (patch) | |
| tree | e821f61fed77a158885a68edfc538954b4157398 /src | |
| parent | improve the powerstroke settings in drawing tool. triangle in and out now use... (diff) | |
| download | inkscape-20124293ed6d8a13ebbcce7a184a8fd6af324bac.tar.gz inkscape-20124293ed6d8a13ebbcce7a184a8fd6af324bac.zip | |
clean up after myself...
(bzr r10903)
Diffstat (limited to 'src')
| -rw-r--r-- | src/draw-context.cpp | 3 | ||||
| -rw-r--r-- | src/sp-path.cpp | 9 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index f3023cfa1..0223ce163 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -334,10 +334,8 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item, SPCurve *c case 1: { // "triangle in" - guint curve_length = curve->get_segment_count(); std::vector<Geom::Point> points(1); points[0] = Geom::Point(0., SHAPE_HEIGHT/2); - // points[1] = Geom::Point((double)curve_length, 0.); spdc_apply_powerstroke_shape(points, dc, item); shape_applied = true; @@ -348,7 +346,6 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item, SPCurve *c // "triangle out" guint curve_length = curve->get_segment_count(); std::vector<Geom::Point> points(1); - // points[0] = Geom::Point(0., 0.); points[0] = Geom::Point((double)curve_length, SHAPE_HEIGHT/2); spdc_apply_powerstroke_shape(points, dc, item); diff --git a/src/sp-path.cpp b/src/sp-path.cpp index d5969e339..4ddfc77ea 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -488,9 +488,6 @@ SPCurve * SPPath::get_original_curve () const */ SPCurve* SPPath::get_curve_for_edit () const { - if (!SP_IS_PATH(this)) { - return NULL; - } if (_curve_before_lpe && sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(this))) { return get_original_curve(); } else { @@ -504,9 +501,6 @@ SPCurve* SPPath::get_curve_for_edit () const */ const SPCurve* SPPath::get_curve_reference () const { - if (!SP_IS_PATH(this)) { - return NULL; - } if (_curve_before_lpe && sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(this))) { return _curve_before_lpe; } else { @@ -520,9 +514,6 @@ const SPCurve* SPPath::get_curve_reference () const */ SPCurve* SPPath::get_curve () { - if (!SP_IS_PATH(this)) { - return NULL; - } if (_curve_before_lpe && sp_lpe_item_has_path_effect_recursive(SP_LPE_ITEM(this))) { return _curve_before_lpe; } else { |
