summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c286c3)
raw | patch | inline | side by side (parent: 3c286c3)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 7 Sep 2008 19:02:52 +0000 (19:02 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 7 Sep 2008 19:02:52 +0000 (19:02 +0000) |
src/sp-item.cpp | patch | blob | history |
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 706469d3cad42440c3d846f5630d338e4befb96e..11d5728180f628c231193026dafafdcc09f0ad4f 100644 (file)
--- 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();
*p = p2;
*p = NR::Point(p1[NR::Y], p2[NR::X]);
}
+
}
void sp_item_snappoints(SPItem const *item, bool includeItemCenter, SnapPointsIter p)