From d342c9bebe446cb16285b203f207b4b215b5941a Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 13 Oct 2012 12:11:45 +0200 Subject: hide edit fields for duplicate and unique Change-Id: Ib2d07a22393604ea11454de125849e9d0da430b8 --- sc/source/ui/condformat/condformatdlgentry.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sc/source') 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(); } -- cgit