diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index d678200cb6628776883955bb6cfebdb5a59201d5..cc106e8f71f42fdebc39b9565ce9540178ae19cd 100644 (file)
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
return (transform_center_x != 0 || transform_center_y != 0);
}
-NR::Point SPItem::getCenter() const {
+Geom::Point SPItem::getCenter() const {
boost::optional<NR::Rect> bbox = getBounds(sp_item_i2d_affine(this));
if (bbox) {
- return bbox->midpoint() + NR::Point (this->transform_center_x, this->transform_center_y);
+ return to_2geom(bbox->midpoint()) + Geom::Point (this->transform_center_x, this->transform_center_y);
} else {
- return NR::Point (0, 0); // something's wrong!
+ return Geom::Point (0, 0); // something's wrong!
}
}