summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-11 23:58:36 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-03-12 17:46:15 +0000
commit0a35bf614100ba0d5ee8bded7160defec058ae2c (patch)
tree933cd68b443c4bca54d17bdcdfec0eb7b80dc0b6 /src
parentAtempt to fix high load in background (diff)
downloadinkscape-0a35bf614100ba0d5ee8bded7160defec058ae2c.tar.gz
inkscape-0a35bf614100ba0d5ee8bded7160defec058ae2c.zip
Remove unnecessary conversion
Fixes https://gitlab.com/inkscape/inbox/issues/207
Diffstat (limited to 'src')
-rw-r--r--src/ui/clipboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 13390545a..4539c9cc9 100644
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
@@ -1247,8 +1247,8 @@ void ClipboardManagerImpl::_onGet(Gtk::SelectionData &sel, guint /*info*/)
Geom::Point origin (_clipboardSPDoc->getRoot()->x.computed, _clipboardSPDoc->getRoot()->y.computed);
Geom::Rect area = Geom::Rect(origin, origin + _clipboardSPDoc->getDimensions());
- unsigned long int width = (unsigned long int) (Inkscape::Util::Quantity::convert(area.width(), "px", "in") * dpi + 0.5);
- unsigned long int height = (unsigned long int) (Inkscape::Util::Quantity::convert(area.height(), "in", "px") * dpi + 0.5);
+ unsigned long int width = (unsigned long int) (area.width() + 0.5);
+ unsigned long int height = (unsigned long int) (area.height() + 0.5);
// read from namedview
Inkscape::XML::Node *nv = sp_repr_lookup_name (_clipboardSPDoc->rroot, "sodipodi:namedview");