From 0bcc66f209bf04d3f8fde09635524d4bab468f6d Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 7 Sep 2013 12:22:26 +0200 Subject: CID#704695/704708: Dereference after null check Change-Id: Ia0d9f61b20713295fb40629b7fb57d91c2b98619 Reviewed-on: https://gerrit.libreoffice.org/5855 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- sc/source/ui/dbgui/consdlg.cxx | 3 +-- sc/source/ui/pagedlg/areasdlg.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/dbgui/consdlg.cxx b/sc/source/ui/dbgui/consdlg.cxx index d6c2985398a6..23e2b23c381d 100644 --- a/sc/source/ui/dbgui/consdlg.cxx +++ b/sc/source/ui/dbgui/consdlg.cxx @@ -280,9 +280,8 @@ void ScConsolidateDlg::SetReference( const ScRange& rRef, ScDocument* pDocP ) aStr = rRef.aStart.Format(nFmt, pDocP, eConv); pRefInputEdit->SetRefString( aStr ); + ModifyHdl( pRefInputEdit ); } - - ModifyHdl( pRefInputEdit ); } diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx index dd83ee1de23c..268e03b51e5f 100644 --- a/sc/source/ui/pagedlg/areasdlg.cxx +++ b/sc/source/ui/pagedlg/areasdlg.cxx @@ -218,9 +218,8 @@ void ScPrintAreasDlg::SetReference( const ScRange& rRef, ScDocument* /* pDoc */ lcl_GetRepeatRangeString(&rRef, pDoc, bRow, aStr); pRefInputEdit->SetRefString( aStr ); } + Impl_ModifyHdl( pRefInputEdit ); } - - Impl_ModifyHdl( pRefInputEdit ); } -- cgit