sc/source/ui/condformat/condformateasydlg.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 6d795d6f04f62a9bd8085820d58ff2793dbca856 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Fri Aug 2 04:06:35 2024 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Aug 2 04:37:46 2024 +0200 Fix potentially uninitialized pointer variable Change-Id: I296b6d27dab327b49884369461abc25ece62d308 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171387 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sc/source/ui/condformat/condformateasydlg.cxx b/sc/source/ui/condformat/condformateasydlg.cxx index 96e8a76c7bf7..4042507036c9 100644 --- a/sc/source/ui/condformat/condformateasydlg.cxx +++ b/sc/source/ui/condformat/condformateasydlg.cxx @@ -365,6 +365,11 @@ IMPL_LINK(ConditionalFormatEasyDialog, ButtonPressed, weld::Button&, rButton, vo pEntry = new ScCondFormatEntry(ScConditionMode::Direct, msFormula, OUString(), *mpDocument, maPosition, mxStyles->get_active_text()); } + else + { + DBG_ASSERT(false, "Invalid conidtion type selected."); + return; + } ScRangeList aRange; ScRefFlags nFlags