summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-09-18 17:42:51 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-09-18 17:42:51 +0000
commit1ae6235112448547c758dd643a9ddd267a6cd580 (patch)
tree2bb449941d10f4b71629a75d741465429e0ebfa0 /src/file.cpp
parentSome NR::Point ==> Geom::Point replacements (diff)
downloadinkscape-1ae6235112448547c758dd643a9ddd267a6cd580.tar.gz
inkscape-1ae6235112448547c758dd643a9ddd267a6cd580.zip
More NR ==> Geom conversion (points and some matrices/transforms)
(bzr r6836)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index dbd62a5fa..d38efb304 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -273,12 +273,12 @@ sp_file_revert_dialog()
// remember current zoom and view
double zoom = desktop->current_zoom();
- NR::Point c = desktop->get_display_area().midpoint();
+ Geom::Point c = desktop->get_display_area().midpoint();
reverted = sp_file_open(uri,NULL);
if (reverted) {
// restore zoom and view
- desktop->zoom_absolute(c[NR::X], c[NR::Y], zoom);
+ desktop->zoom_absolute(c[Geom::X], c[Geom::Y], zoom);
}
} else {
reverted = false;
@@ -990,9 +990,9 @@ file_import(SPDocument *in_doc, const Glib::ustring &uri,
bool const saved_pref = prefs->getBool("options.transform", "pattern", true);
prefs->setBool("options.transform", "pattern", true);
sp_document_ensure_up_to_date(sp_desktop_document(desktop));
- boost::optional<NR::Rect> sel_bbox = selection->bounds();
+ boost::optional<Geom::Rect> sel_bbox = selection->bounds_2geom();
if (sel_bbox) {
- NR::Point m( desktop->point() - sel_bbox->midpoint() );
+ Geom::Point m( desktop->point() - sel_bbox->midpoint() );
sp_selection_move_relative(selection, m);
}
prefs->setBool("options.transform", "pattern", saved_pref);