summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-30 18:30:42 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-30 19:13:16 +0200
commit86869dea4b76e35ee3ed3d0795f4f7dfc978e7d3 (patch)
tree68ef50ebc48054882cc593d8f4a75583a150cbfc
parent62b4026212d2f5e4ee26acf70b09b7e8f2eb6e63 (diff)
handle single cell conditional formats correctly, fdo#51555
Change-Id: Ic0b171b182eae86010de316ff5ed435e76b09d12
-rw-r--r--sc/source/ui/view/cellsh1.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index ca84b2bf0ae5..0d20878efa82 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2061,6 +2061,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)