[Libreoffice-commits] core.git: vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 16 20:09:00 UTC 2018
vcl/source/gdi/impgraph.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3cd264bb09c6c14bf9eb769d508d7015c4bdc83b
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Aug 16 16:46:57 2018 +0200
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Aug 16 22:08:35 2018 +0200
tdf#117797 guard access to mpSwapFile as it may not be set
Change-Id: If45257293e997bc4540b97fbbe5f1f4b77a48b69
Reviewed-on: https://gerrit.libreoffice.org/59202
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index c0767474a01a..005427b66dce 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1585,7 +1585,8 @@ bool ImpGraphic::ImplSwapIn()
bRet = ImplSwapIn( xIStm.get() );
xIStm.reset();
- setOriginURL(mpSwapFile->maOriginURL);
+ if (mpSwapFile)
+ setOriginURL(mpSwapFile->maOriginURL);
mpSwapFile.reset();
}
}
More information about the Libreoffice-commits
mailing list