diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-02-20 13:37:04 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-02-20 13:52:08 +0200 |
commit | debbddf12bd266102d93e417934ca98365db9987 (patch) | |
tree | b9a31eba8f0dcfa895a062058928f50410b875e3 | |
parent | ba28d85c15e1841fdfa337375893f42bc9bcceae (diff) |
Re-introduce code to try to get GDI metafile replacement image
The code was commented out in 2009 (with any rationale lost from
version history) and then cleaned away in 2011. Re-introduce the bit
that tries FORMAT_GDIMETAFILE. Seems to work, knock on wood.
Change-Id: Ie0cfdde98afb127233ac928e899165209f439a6c
-rw-r--r-- | sc/source/ui/view/viewfun5.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index ef4777f4e033..9a7910b453c7 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.cxx @@ -181,6 +181,9 @@ bool ScViewFunc::PasteDataFormat( sal_uLong nFormatId, Graphic aGraphic; sal_uLong nGrFormat = 0; + if (aDataHelper.GetGraphic( FORMAT_GDIMETAFILE, aGraphic ) ) + nGrFormat = SOT_FORMAT_GDIMETAFILE; + // insert replacement image ( if there is one ) into the object helper if ( nGrFormat ) { |