Kaydet (Commit) 569756aa authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst a1362292
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment