diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-13 12:11:45 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-15 04:52:52 +0200 |
commit | d342c9bebe446cb16285b203f207b4b215b5941a (patch) | |
tree | 9491e7e6d589d98721b1da51fdde34affecc1022 /sc | |
parent | f8dada570ba03b6761a41a074063f2d306989232 (diff) |
hide edit fields for duplicate and unique
Change-Id: Ib2d07a22393604ea11454de125849e9d0da430b8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 10 |
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(); } |