summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh1.cxx
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:11:19 +0200
commit53327abd436bf24076f624c56b3dee2f3f0eedcb (patch)
tree7c75090c1129ca08a02391d4c5f5ec3a2914b36d /sc/source/ui/view/cellsh1.cxx
parent6b11a18071254a443c8fe7e7b0b1c95b0f9fd35e (diff)
handle single cell conditional formats correctly, fdo#51555
Change-Id: Ic0b171b182eae86010de316ff5ed435e76b09d12
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-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 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)