sw/source/core/edit/editsh.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit e0432408840196e3f0af3c91ba4a42c70262b1e0 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Sep 18 13:00:34 2018 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Sep 18 22:00:45 2018 +0200 tdf#119770 nullptr GetGraphic return Change-Id: I9e76b6704e7f82cd9d200ed6c5802101de264242 Reviewed-on: https://gerrit.libreoffice.org/60683 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 04bd08bb8f6f..f5867ee7fb8a 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -603,7 +603,8 @@ Graphic SwEditShell::GetIMapGraphic() const } else if ( rNd.IsOLENode() ) { - aRet = *static_cast<SwOLENode&>(rNd).GetGraphic(); + if (const Graphic* pGraphic = static_cast<SwOLENode&>(rNd).GetGraphic()) + aRet = *pGraphic; } else { _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
