summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-07-19 18:24:59 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-07-19 18:24:59 +0000
commit97b1c4d688a979eb8e327c13c6bcc6fad20902f2 (patch)
tree2c2c73c29be8911a89a752136c25d65b9abd5684 /src/sp-item.cpp
parentBuild depends on Cairo 1.10 or higher (diff)
downloadinkscape-97b1c4d688a979eb8e327c13c6bcc6fad20902f2.tar.gz
inkscape-97b1c4d688a979eb8e327c13c6bcc6fad20902f2.zip
remove some unnecessary inkscape_active_desktop() calls
(bzr r10477)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index 072d6d57b..946c94353 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -1574,9 +1574,6 @@ SPItem *sp_item_first_item_child(SPObject *obj)
}
void SPItem::convert_to_guides() {
- SPDesktop *dt = inkscape_active_desktop();
- sp_desktop_namedview(dt);
-
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
int prefs_bbox = prefs->getInt("/tools/bounding_box", 0);
SPItem::BBoxType bbox_type = (prefs_bbox ==0)?
@@ -1600,7 +1597,7 @@ void SPItem::convert_to_guides() {
pts.push_back(std::make_pair(C, D));
pts.push_back(std::make_pair(D, A));
- sp_guide_pt_pairs_to_guides(dt, pts);
+ sp_guide_pt_pairs_to_guides(document, pts);
}
/*