sc/source/ui/condformat/condformatmgr.cxx | 2 +- svgio/source/svgreader/svgtextpathnode.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 916d3500d1e7cc1ee62da902552ee747493b0abd Author: Caolán McNamara <[email protected]> AuthorDate: Sun Aug 3 21:48:04 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Aug 4 12:37:33 2025 +0200 cid#1660263 Explicit null dereferenced Change-Id: Id6d36908f93783b8b742e59861452cef00a43dca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188895 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins diff --git a/sc/source/ui/condformat/condformatmgr.cxx b/sc/source/ui/condformat/condformatmgr.cxx index 2e5cef3a01a0..5e60a2a2a70d 100644 --- a/sc/source/ui/condformat/condformatmgr.cxx +++ b/sc/source/ui/condformat/condformatmgr.cxx @@ -124,7 +124,7 @@ std::unique_ptr<ScConditionalFormatList> ScCondFormatManagerDlg::GetConditionalF void ScCondFormatManagerDlg::UpdateButtonSensitivity() { - bool bNewSensitivity = !m_xFormatList->empty(); + bool bNewSensitivity = m_xFormatList && !m_xFormatList->empty(); m_xBtnRemove->set_sensitive(bNewSensitivity); m_xBtnEdit->set_sensitive(bNewSensitivity); } commit fc2bc3c01d2391054ab1d2c77fe14812fdf10327 Author: Caolán McNamara <[email protected]> AuthorDate: Sun Aug 3 21:45:10 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Aug 4 12:37:20 2025 +0200 cid#1660061 Division or modulo by float zero Change-Id: I26d92fa78b3219c3894016caf51b6977c828f4b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188894 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins Tested-by: Caolán McNamara <[email protected]> diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx index 5a36e7fcfa7f..8f4f50ffb9ba 100644 --- a/svgio/source/svgreader/svgtextpathnode.cxx +++ b/svgio/source/svgreader/svgtextpathnode.cxx @@ -363,6 +363,7 @@ namespace svgio::svgreader if(basegfx::fTools::equalZero(fBasegfxPathLength)) return; + assert(fBasegfxPathLength != 0 && "help coverity see it's not zero"); double fUserToBasegfx(1.0); // multiply: user->basegfx, divide: basegfx->user if(pSvgPathNode->getPathLength().isSet())
