diff options
| author | Ted Gould <ted@gould.cx> | 2006-02-06 07:17:33 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-02-06 07:17:33 +0000 |
| commit | 53e1c1a77a66d307715a796cb164d7f87ae9eba5 (patch) | |
| tree | 514aa9c110787f3c9abc480a223a254959199286 /src/sp-tspan.cpp | |
| parent | Had to include fstream for overloaded def of << (diff) | |
| download | inkscape-53e1c1a77a66d307715a796cb164d7f87ae9eba5.tar.gz inkscape-53e1c1a77a66d307715a796cb164d7f87ae9eba5.zip | |
r10887@tres: ted | 2006-02-05 23:16:41 -0800
Okay, I'm basically undoing the last commit that SVK screwed up. All
this work is not mine, it was done by other people. Sorry to mess
things up.
(bzr r92)
Diffstat (limited to 'src/sp-tspan.cpp')
| -rw-r--r-- | src/sp-tspan.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp index 6be423125..f07783dbe 100644 --- a/src/sp-tspan.cpp +++ b/src/sp-tspan.cpp @@ -198,13 +198,13 @@ sp_tspan_modified(SPObject *object, unsigned flags) static void sp_tspan_bbox(SPItem const *item, NRRect *bbox, NR::Matrix const &transform, unsigned const flags) { + // find out the ancestor text which holds our layout SPObject *parent_text = SP_OBJECT(item); for (; parent_text != NULL && !SP_IS_TEXT(parent_text); parent_text = SP_OBJECT_PARENT (parent_text)); if (parent_text == NULL) return; - Inkscape::Text::Layout layout = SP_TEXT(parent_text)->layout; - - SP_TEXT(parent_text)->layout.getBoundingBox(bbox, transform, sp_text_get_length_upto(parent_text, item) - 1, sp_text_get_length(item)); + // get the bbox of our portion of the layout + SP_TEXT(parent_text)->layout.getBoundingBox(bbox, transform, sp_text_get_length_upto(parent_text, item), sp_text_get_length_upto(item, NULL) - 1); // Add stroke width SPStyle* style=SP_OBJECT_STYLE (item); |
