summaryrefslogtreecommitdiff
path: root/sc/source/ui/condformat
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-03 19:00:58 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-11-03 19:07:02 +0100
commit4e1f89f08bd9712edeb0a0770193cb21633c054c (patch)
tree60f41de6f1febd9056170504e9229164f08de206 /sc/source/ui/condformat
parent338c7073e45df2463dfe1e85babe34bc10017a1c (diff)
hide the second edit field for all necessary cond formats
Change-Id: I56c5ba7829540d0c619adb8ff68eacc736ff92ff
Diffstat (limited to 'sc/source/ui/condformat')
-rw-r--r--sc/source/ui/condformat/condformatdlgentry.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx
index 77f51d05f613..1f4a1f0365a6 100644
--- a/sc/source/ui/condformat/condformatdlgentry.cxx
+++ b/sc/source/ui/condformat/condformatdlgentry.cxx
@@ -158,6 +158,7 @@ ScConditionFrmtEntry::ScConditionFrmtEntry( Window* pParent, ScDocument* pDoc, c
StyleSelectHdl(NULL);
ScConditionMode eMode = pFormatEntry->GetOperation();
maEdVal1.SetText(pFormatEntry->GetExpression(maPos, 0));
+ maEdVal2.Hide();
switch(eMode)
{
case SC_COND_EQUAL:
@@ -179,10 +180,12 @@ ScConditionFrmtEntry::ScConditionFrmtEntry( Window* pParent, ScDocument* pDoc, c
maLbCondType.SelectEntryPos(5);
break;
case SC_COND_BETWEEN:
+ maEdVal2.Show();
maEdVal2.SetText(pFormatEntry->GetExpression(maPos, 1));
maLbCondType.SelectEntryPos(6);
break;
case SC_COND_NOTBETWEEN:
+ maEdVal2.Show();
maEdVal2.SetText(pFormatEntry->GetExpression(maPos, 1));
maLbCondType.SelectEntryPos(7);
break;
@@ -209,9 +212,11 @@ ScConditionFrmtEntry::ScConditionFrmtEntry( Window* pParent, ScDocument* pDoc, c
maLbCondType.SelectEntryPos(13);
break;
case SC_COND_ABOVE_AVERAGE:
+ maEdVal1.Hide();
maLbCondType.SelectEntryPos(14);
break;
case SC_COND_BELOW_AVERAGE:
+ maEdVal1.Hide();
maLbCondType.SelectEntryPos(15);
break;
case SC_COND_NONE: