summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-08 20:18:44 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-08 20:18:44 +0000
commit362bc9381011284b458dc7815ec77ca1d74e5935 (patch)
tree88f49ea34b24f219541aa8a08760296bfda4c827 /src/object-snapper.cpp
parent2geomify ellipse creation (diff)
downloadinkscape-362bc9381011284b458dc7815ec77ca1d74e5935.tar.gz
inkscape-362bc9381011284b458dc7815ec77ca1d74e5935.zip
2geomify SPCurve::new_from_rect
(bzr r6235)
Diffstat (limited to 'src/object-snapper.cpp')
-rw-r--r--src/object-snapper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index ef6c5fce2..c928d43d3 100644
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
@@ -16,7 +16,9 @@
#include "libnr/nr-rect-ops.h"
#include "libnr/nr-point-fns.h"
#include "libnr/n-art-bpath-2geom.h"
-#include "2geom/path-intersection.h"
+#include <2geom/path-intersection.h>
+#include <2geom/point.h>
+#include <2geom/rect.h>
#include "document.h"
#include "sp-namedview.h"
#include "sp-image.h"
@@ -706,7 +708,7 @@ void Inkscape::ObjectSnapper::_clear_paths() const
NArtBpath const* Inkscape::ObjectSnapper::_getBorderBPath() const
{
NArtBpath const *border_bpath = NULL;
- NR::Rect const border_rect = NR::Rect(NR::Point(0,0), NR::Point(sp_document_width(_named_view->document),sp_document_height(_named_view->document)));
+ Geom::Rect const border_rect = Geom::Rect(Geom::Point(0,0), Geom::Point(sp_document_width(_named_view->document),sp_document_height(_named_view->document)));
SPCurve const *border_curve = SPCurve::new_from_rect(border_rect);
if (border_curve) {
border_bpath = SP_CURVE_BPATH(border_curve);