diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2018-11-06 10:18:22 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2018-11-07 20:58:07 +0000 |
| commit | 5835eaa282065fe8f44fb071a467f10c0adcb76a (patch) | |
| tree | e9f07e0514b6ccdfaf52619b0a93044cefe19907 /src/ui/clipboard.cpp | |
| parent | Refactor rebase_hrefs with new URI API (diff) | |
| download | inkscape-5835eaa282065fe8f44fb071a467f10c0adcb76a.tar.gz inkscape-5835eaa282065fe8f44fb071a467f10c0adcb76a.zip | |
fix clipboard URL rebasing
Diffstat (limited to 'src/ui/clipboard.cpp')
| -rw-r--r-- | src/ui/clipboard.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/clipboard.cpp b/src/ui/clipboard.cpp index a18df5675..b57179725 100644 --- a/src/ui/clipboard.cpp +++ b/src/ui/clipboard.cpp @@ -1279,7 +1279,12 @@ void ClipboardManagerImpl::_onGet(Gtk::SelectionData &sel, guint /*info*/) // Need to load the extension. (*out)->set_state(Inkscape::Extension::Extension::STATE_LOADED); } - (*out)->save(_clipboardSPDoc, filename); + + if (SP_ACTIVE_DOCUMENT) { + _clipboardSPDoc->setBase(SP_ACTIVE_DOCUMENT->getBase()); + } + + (*out)->save(_clipboardSPDoc, filename, true); } g_file_get_contents(filename, &data, &len, nullptr); |
