summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-13 12:11:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-15 04:52:52 +0200
commitd342c9bebe446cb16285b203f207b4b215b5941a (patch)
tree9491e7e6d589d98721b1da51fdde34affecc1022 /sc/source
parentf8dada570ba03b6761a41a074063f2d306989232 (diff)
hide edit fields for duplicate and unique
Change-Id: Ib2d07a22393604ea11454de125849e9d0da430b8
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx
index 1588bc4b71d6..75fec8c3b4b8 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -910,12 +910,20 @@ IMPL_LINK( ScColorScale3FrmtEntry, EntryTypeHdl, ListBox*, pBox )
IMPL_LINK_NOARG( ScConditionFrmtEntry, ConditionTypeSelectHdl )
{
- if(maLbCondType.GetSelectEntryPos() == 6 || maLbCondType.GetSelectEntryPos() == 7)
+ sal_Int32 nSelectPos = maLbCondType.GetSelectEntryPos();
+ if(nSelectPos == 6 || nSelectPos == 7)
{
+ maEdVal1.Show();
maEdVal2.Show();
}
+ else if(nSelectPos == 8 || nSelectPos == 9)
+ {
+ maEdVal2.Hide();
+ maEdVal1.Hide();
+ }
else
{
+ maEdVal1.Show();
maEdVal2.Hide();
}