summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-23 14:10:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-23 17:57:52 +0200
commit8051bdea4fa3fc75f9cb08facf79e64a24cd8bd9 (patch)
tree9d5a045ae243154c4a24a777bad2f9b466e5a32b /vcl
parent1fd27a79318b2a762e3ae1590dde783ee656234b (diff)
Resolves: tdf#118659 eps not shown
since... commit 7b355669c6ddeab2e6cec692d6afdff41c61d0fb Date: Sat Apr 14 15:13:05 2018 +0900 Function to load graphic swapped out (loaded on demand) new function doesn't load the eps, so supposed to fall back to the old function, but the new function didn't leave the stream at its original position on failing to attempt the load Change-Id: I960574722687cf5ad8c78be7339d2ce6b74397a9 Reviewed-on: https://gerrit.libreoffice.org/59503 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/graphicfilter.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 3a96985879cc..fac71cecaf1c 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1668,11 +1668,10 @@ Graphic GraphicFilter::ImportUnloadedGraphic(SvStream& rIStream)
}
// Set error code or try to set native buffer
- if(nStatus != ERRCODE_NONE)
- {
+ if (nStatus != ERRCODE_NONE)
ImplSetError(nStatus, &rIStream);
+ if (nStatus != ERRCODE_NONE || eLinkType == GfxLinkType::NONE)
rIStream.Seek(nStreamBegin);
- }
return aGraphic;
}