summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-11-07 10:42:55 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-11-07 10:45:16 +0100
commit4c9aa743fc83b3f3c5b35eeff79c1ffdae90c1fa (patch)
tree937ea954937a4c37eadd66684d34eb13f6589575 /oox/source
parent78657d31ca3118759b7e817d12886f3b713aea07 (diff)
Swapping Graphic is a privilage of GraphicObject.
This means more things: * Graphic won't swap out itself, so those classes which uses Graphic without GraphicObject won't need to deal with swapping. * When a Graphic is queried from GraphicObject the caller won't need to deal with swapping, because GraphicObject swaps it in before return. * GraphicObject will swap in the Graphic always when a swapping dependent data is queried (e.g. whole graphic, transformed graphic or AnimationNotifyHdl) Change-Id: I2bf6e37291ec94146f10aac4a35084682437ed16
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/export/drawingml.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 7a9689b8a91a..6b0e4dc73ff0 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -866,19 +866,6 @@ OUString DrawingML::WriteImage( const Graphic& rGraphic , bool bRelPathToMedia )
GraphicType aType = rGraphic.GetType();
if ( aType == GRAPHIC_BITMAP || aType == GRAPHIC_GDIMETAFILE)
{
- bool bSwapped = rGraphic.IsSwapOut();
-
- //Warn rather than just happily swap in because of the comments
- //in the sw export filters about needing to go through the
- //hairy SwGrfNode::SwapIn which we would subvert by swapping in
- //without it knowing about it, so while those ones are fixed we
- //probably have to assume that we should ideally be presented
- //here with already swapped in graphics.
- SAL_WARN_IF(bSwapped, "oox", "attempted to output swapped out graphic");
-
- if (bSwapped)
- const_cast<Graphic&>(rGraphic).SwapIn();
-
if ( aType == GRAPHIC_BITMAP )
{
GraphicConverter::Export( aStream, rGraphic, CVT_PNG );