summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-09-28 12:43:47 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-01 19:10:17 +0200
commit6315839cec5c82c9b650d9e4581a79ec6db92603 (patch)
treefc0f8239d22921ae2c19cdd19e2c088215fb350a
parent5294e6b70bf755b87bc4f87af866c9dd9e99f53e (diff)
auto-expand the first conditional format in the list.
Change-Id: I65280d39b560b4b7eed3e21a6e6c7b02c124f10a Signed-off-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index 9fe983fc4367..6b877de44cfe 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -979,6 +979,8 @@ ScCondFormatList::ScCondFormatList(Window* pParent, const ResId& rResId, ScDocum
{
maEntries.push_back(new ScCondFrmtEntry( this, mpDoc, pFormat->GetEntry(nIndex), maPos ));
}
+ if (nCount > 0)
+ maEntries.begin()->Select();
}
RecalcAll();