summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-07 20:36:52 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-08 13:33:47 +0200
commit343e9126f4930a7744e94a404004d2124582292d (patch)
tree2200715d1f93b5d0bb63afdcbcd437ab4a57c1d0 /vcl/source
parent427f0b402d6bc2ea2cfd796915ffb1354f9dc6dd (diff)
cid#1609651 Pointer to local outside scope
since: commit 5b57fe250108a9ea30b87e40e306af8a79043354 Date: Sun Mar 31 00:07:58 2024 +0900 vcl: clean-up and refactor GraphicFilter::ImportUnloadedGraphic Change-Id: Iea3438863df4ac23860cea403d1633a1d3892970 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170099 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/graphicfilter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 5a240aafd842..18bd05d107ba 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -879,10 +879,11 @@ Graphic GraphicFilter::ImportUnloadedGraphic(SvStream& rIStream, sal_uInt64 size
if (nStatus == ERRCODE_NONE)
{
bool bAnimated = false;
+ Size aLogicSize;
+
if (eLinkType == GfxLinkType::NativeGif && !aBinaryDataContainer.isEmpty())
{
std::shared_ptr<SvStream> pMemoryStream = aBinaryDataContainer.getAsStream();
- Size aLogicSize;
bAnimated = IsGIFAnimated(*pMemoryStream, aLogicSize);
if (!pSizeHint && aLogicSize.getWidth() && aLogicSize.getHeight())
{