summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-03-03 12:50:00 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-03-04 12:56:31 +0100
commitc941c6c4f02522dfc7210bb5ceadd221dbc07260 (patch)
tree012625bbf90592a0606655acbe656d7e9f991f8f /vcl
parent7a078207fbfd71b33cb51c38b3886351fedcde8d (diff)
graphic: remove CreateNativeLink property for graphic import
Doesn't seem to be used and we always want to creat a native link anyway. Change-Id: I2e50093491b771bb251816525cf492cf030bc496 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89930 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/graphicfilter.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 1c87416115e9..97fdc15d8200 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1422,7 +1422,6 @@ ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath,
Size aPreviewSizeHint( 0, 0 );
bool bAllowPartialStreamRead = false;
- bool bCreateNativeLink = true;
std::unique_ptr<sal_uInt8[]> pGraphicContent;
sal_Int32 nGraphicContentSize = 0;
@@ -1449,10 +1448,6 @@ ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath,
{
rPropVal.Value >>= bAllowPartialStreamRead;
}
- else if ( rPropVal.Name == "CreateNativeLink" )
- {
- rPropVal.Value >>= bCreateNativeLink;
- }
}
}
@@ -1786,7 +1781,7 @@ ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath,
}
}
- if( nStatus == ERRCODE_NONE && bCreateNativeLink && ( eLinkType != GfxLinkType::NONE ) && !rGraphic.GetReaderContext() && !bLinkSet )
+ if( nStatus == ERRCODE_NONE && ( eLinkType != GfxLinkType::NONE ) && !rGraphic.GetReaderContext() && !bLinkSet )
{
if (!pGraphicContent)
{