diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-09-07 19:02:52 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-09-07 19:02:52 +0000 |
| commit | f29cdbfabb8d52a2ed9c9dc60c251902e459dfd5 (patch) | |
| tree | 0ed19ca538f2d264b77553f04f241a33bf5ff598 /src | |
| parent | LIBNR REMOVAL. Deleted nr-path.h/.cpp which is no longer used. (removed all ... (diff) | |
| download | inkscape-f29cdbfabb8d52a2ed9c9dc60c251902e459dfd5.tar.gz inkscape-f29cdbfabb8d52a2ed9c9dc60c251902e459dfd5.zip | |
Remove an obsolete comment
(bzr r6775)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-item.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 706469d3c..11d572818 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -931,10 +931,13 @@ boost::optional<NR::Rect> sp_item_bbox_desktop(SPItem *item, SPItem::BBoxType ty static void sp_item_private_snappoints(SPItem const *item, SnapPointsIter p) { - boost::optional<NR::Rect> bbox = item->getBounds(sp_item_i2d_affine(item)); - /* Just the corners of the bounding box suffices given that we don't yet - support angled guide lines. */ + /* This will only be called if the derived class doesn't override this. + * see for example sp_genericellipse_snappoints in sp-ellipse.cpp + * We don't know what shape we could be dealing with here, so we'll just + * return the corners of the bounding box */ + boost::optional<NR::Rect> bbox = item->getBounds(sp_item_i2d_affine(item)); + if (bbox) { NR::Point p1, p2; p1 = bbox->min(); @@ -944,6 +947,7 @@ static void sp_item_private_snappoints(SPItem const *item, SnapPointsIter p) *p = p2; *p = NR::Point(p1[NR::Y], p2[NR::X]); } + } void sp_item_snappoints(SPItem const *item, bool includeItemCenter, SnapPointsIter p) |
