From 4e1f89f08bd9712edeb0a0770193cb21633c054c Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 3 Nov 2012 19:00:58 +0100 Subject: hide the second edit field for all necessary cond formats Change-Id: I56c5ba7829540d0c619adb8ff68eacc736ff92ff --- sc/source/ui/condformat/condformatdlgentry.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit