diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-04-01 22:59:01 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-04-01 22:59:01 +0000 |
| commit | d6978fcea4a2ccd2d9cccefabc6558a74f332a6d (patch) | |
| tree | 98ea2cff482d6b2196e4bffa4fab3a7a4d5aead0 /src/sp-rect.cpp | |
| parent | German translation update. (diff) | |
| download | inkscape-d6978fcea4a2ccd2d9cccefabc6558a74f332a6d.tar.gz inkscape-d6978fcea4a2ccd2d9cccefabc6558a74f332a6d.zip | |
add curve before LPE to SPShape. this is useful for helperpath display. It was inspired from fixing bug 407008
Fixed bugs:
- https://launchpad.net/bugs/407008
(bzr r10142)
Diffstat (limited to 'src/sp-rect.cpp')
| -rw-r--r-- | src/sp-rect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index fd44f64df..e8f79e6ed 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -232,6 +232,7 @@ sp_rect_set_shape(SPShape *shape) if ((rect->height.computed < 1e-18) || (rect->width.computed < 1e-18)) { SP_SHAPE(rect)->setCurveInsync( NULL, TRUE); + SP_SHAPE(rect)->setCurveBeforeLPE( NULL ); return; } @@ -282,6 +283,10 @@ sp_rect_set_shape(SPShape *shape) c->closepath(); SP_SHAPE(rect)->setCurveInsync( c, TRUE); + SP_SHAPE(rect)->setCurveBeforeLPE( c ); + + // LPE is not applied because result can generally not be represented as SPRect + c->unref(); } |
