From 53327abd436bf24076f624c56b3dee2f3f0eedcb Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 30 Jun 2012 18:30:42 +0200 Subject: handle single cell conditional formats correctly, fdo#51555 Change-Id: Ic0b171b182eae86010de316ff5ed435e76b09d12 --- sc/source/ui/view/cellsh1.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sc') diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index 52d339007ada..7ce2a6a55ed0 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -2045,6 +2045,12 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) ScDocument* pDoc = pData->GetDocument(); ScAddress aPos(pData->GetCurX(), pData->GetCurY(), pData->GetTabNo()); + if(aRangeList.empty()) + { + ScRange* pRange = new ScRange(aPos); + aRangeList.push_back(pRange); + } + AbstractScCondFormatDlg* pDlg = NULL; const ScConditionalFormat* pCondFormat = pDoc->GetCondFormat(aPos.Col(), aPos.Row(), aPos.Tab()); if(pCondFormat) -- cgit