summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/condformat/colorformat.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/condformat/colorformat.cxx b/sc/source/ui/condformat/colorformat.cxx
index 963137d1e28a..532c692f0a8a 100644
--- a/sc/source/ui/condformat/colorformat.cxx
+++ b/sc/source/ui/condformat/colorformat.cxx
@@ -252,15 +252,15 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, OkBtnHdl )
//check that min < max
bool bWarn = false;
sal_Int32 nSelectMin = maLbTypeMin.GetSelectEntryPos();
- if( nSelectMin == COLORSCALE_MIN )
+ if( nSelectMin == COLORSCALE_MAX )
bWarn = true;
sal_Int32 nSelectMax = maLbTypeMax.GetSelectEntryPos();
- if( nSelectMax == COLORSCALE_MAX )
+ if( nSelectMax == COLORSCALE_MIN )
bWarn = true;
if(!bWarn && maLbTypeMin.GetSelectEntryPos() == maLbTypeMax.GetSelectEntryPos())
{
- if(maLbTypeMax.GetSelectEntryPos() != 5)
+ if(maLbTypeMax.GetSelectEntryPos() != COLORSCALE_FORMULA)
{
rtl::OUString aMinString = maEdMin.GetText();
rtl::OUString aMaxString = maEdMax.GetText();