summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-03-30 19:04:54 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-03-30 19:04:54 +0000
commit50f5aba16205a6241855bdf0ed9d2161d8ebf897 (patch)
tree4ea334e454e5bc9411d09c9e4e4899d24837b25b /src/sp-item.cpp
parentfix the undo-while-drawing crash in star and spiral (diff)
downloadinkscape-50f5aba16205a6241855bdf0ed9d2161d8ebf897.tar.gz
inkscape-50f5aba16205a6241855bdf0ed9d2161d8ebf897.zip
add a snappoint at the rotation-axis of any shape
(bzr r2788)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 27f6e4ce3..28d8ed6bc 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -296,7 +296,7 @@ bool SPItem::isCenterSet() {
return (transform_center_x != 0 || transform_center_y != 0);
}
-NR::Point SPItem::getCenter() {
+NR::Point SPItem::getCenter() const {
NR::Maybe<NR::Rect> bbox = getBounds(sp_item_i2d_affine(this));
if (bbox) {
return bbox->midpoint() + NR::Point (this->transform_center_x, this->transform_center_y);