summaryrefslogtreecommitdiffstats
path: root/src/ui/clipboard.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-01-07 21:27:52 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-01-07 21:27:52 +0000
commitb3874d0fce9eacd2dc8183cc320c6e963a347c66 (patch)
tree58c94bb6aebb90724ddc9a3fae9920d56884ae89 /src/ui/clipboard.cpp
parentdocumentation: spelling (diff)
downloadinkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.tar.gz
inkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.zip
dropped deprecated function sp_repr_get_double_attribute
(bzr r10858)
Diffstat (limited to 'src/ui/clipboard.cpp')
-rw-r--r--src/ui/clipboard.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp
index 5e0ec5bdb..13b1da427 100644
--- a/src/ui/clipboard.cpp
+++ b/src/ui/clipboard.cpp
@@ -1208,7 +1208,9 @@ void ClipboardManagerImpl::_onGet(Gtk::SelectionData &sel, guint /*info*/)
bgcolor = sp_svg_read_color(nv->attribute("pagecolor"), 0xffffff00);
}
if (nv && nv->attribute("inkscape:pageopacity")) {
- bgcolor |= SP_COLOR_F_TO_U(sp_repr_get_double_attribute (nv, "inkscape:pageopacity", 1.0));
+ double opacity = 1.0;
+ sp_repr_get_double(nv, "inkscape:pageopacity", &opacity);
+ bgcolor |= SP_COLOR_F_TO_U(opacity);
}
sp_export_png_file(_clipboardSPDoc, filename, area, width, height, dpi, dpi, bgcolor, NULL, NULL, true, NULL);