sw/source/ui/dochdl/swdtflvr.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 569756aaf4606313297eace88b3ad5a6f57d8329 Author: Tor Lillqvist <t...@collabora.com> Date: Mon Feb 24 12:08:34 2014 +0200 Re-introduce code to try to get GDI metafile replacement image The code was commented out in 2009 in CWS metropatch01_DEV300, with any reasoning behind it lost in history, and then cleaned away in 2010. Re-introduce the bit that tries FORMAT_GDIMETAFILE. Seems to work for data that produces a reasonably sized metafile. (For data from an Excel "Select All" followed by "Copy", that puts a million rows on the clipboard, good luck... Unfortunately when doing that in Excel, sometimes you get a million rows, sometimes just the non-empty relevant part of the worksheet.) Change-Id: Ib5f1a989b65ad0a30194a1ed23f8b94dd3822cac diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx index d9fa3f3..9a9e3c2 100644 --- a/sw/source/ui/dochdl/swdtflvr.cxx +++ b/sw/source/ui/dochdl/swdtflvr.cxx @@ -1820,6 +1820,9 @@ bool SwTransferable::_PasteOLE( TransferableDataHelper& rData, SwWrtShell& rSh, Graphic aGraphic; sal_uLong nGrFormat = 0; + if( rData.GetGraphic( FORMAT_GDIMETAFILE, aGraphic ) ) + nGrFormat = SOT_FORMAT_GDIMETAFILE; + // insert replacement image ( if there is one ) into the object helper if ( nGrFormat ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits