diff options
Diffstat (limited to 'sw/source/core/doc/notxtfrm.cxx')
-rw-r--r-- | sw/source/core/doc/notxtfrm.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 556727e5d504..00c01953ab35 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -770,26 +770,26 @@ void paintGraphicUsingPrimitivesHelper(vcl::RenderContext & rOutputDevice, // - it's indeed a jpeg graphic (could be checked by the url ending, but is more reliable to check later) // In all other cases (normal repaint, print, etc...) use the available Graphic with the // already loaded pixel graphic as before this change. - if (rOutputDevice.GetExtOutDevData() && rGrfObj.HasLink() && !rGrfObj.GetGraphic().IsGfxLink()) + if (rOutputDevice.GetExtOutDevData() /*&& rGrfObj.HasLink()*/ && !rGrfObj.GetGraphic().IsGfxLink()) { const vcl::PDFExtOutDevData* pPDFExt = dynamic_cast< const vcl::PDFExtOutDevData* >(rOutputDevice.GetExtOutDevData()); if (pPDFExt && pPDFExt->GetIsLosslessCompression()) { - Graphic aTempGraphic; - INetURLObject aURL(rGrfObj.GetLink()); - - if (GRFILTER_OK == GraphicFilter::GetGraphicFilter().ImportGraphic(aTempGraphic, aURL)) - { - if(aTempGraphic.IsGfxLink() && GfxLinkType::NativeJpg == aTempGraphic.GetGfxLink().GetType()) - { - aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D( - aTargetTransform, - aTempGraphic, - rGraphicAttr); - bDone = true; - } - } + // Graphic aTempGraphic; + // INetURLObject aURL(rGrfObj.GetLink()); + + // if (GRFILTER_OK == GraphicFilter::GetGraphicFilter().ImportGraphic(aTempGraphic, aURL)) + // { + // if(aTempGraphic.IsGfxLink() && GfxLinkType::NativeJpg == aTempGraphic.GetGfxLink().GetType()) + // { + // aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D( + // aTargetTransform, + // aTempGraphic, + // rGraphicAttr); + // bDone = true; + // } + // } } } |