summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-31 04:25:14 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-12-31 04:38:01 +0100
commitfaa7667d4a249d1a497610a10c64ac54799c08f4 (patch)
tree3ea2877554dff4695e347405d94d595d6c91a241
parent3b1da9e650db388baa6d649219e2a0e45b58f062 (diff)
don't add a new cond format if we just want to edit one, related fdo#58781
Change-Id: I2f48daa9b317c59515366206f9f17c7d219db5d0
-rw-r--r--sc/source/ui/view/cellsh1.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index ec105f351d8f..6d434cec9f3a 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1825,6 +1825,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
const ScConditionalFormat* pCondFormat = pList->GetFormat(rCondFormats[0]);
assert(pCondFormat);
const ScRangeList& rCondFormatRange = pCondFormat->GetRange();
+ nKey = pCondFormat->GetKey();
pCondFormatDlg.reset( new ScCondFormatDlg( pTabViewShell->GetDialogParent(), pDoc, pCondFormat, rCondFormatRange, aPos, condformat::dialog::NONE ) );
}
else