summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-07-16 04:02:23 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-16 10:25:44 +0200
commit1f6bf7bc65e9b88679bab6b46da3089ac9812c48 (patch)
tree123fc545cf19916665ea0bac56f22d450c8dc177
parentffdee69b8e653085e4681c264682cfb71761f8db (diff)
use correct value to check for min and max, fdo#51831
Change-Id: I8a5412bc9c22048dd8f6618b38e5a522b7ea02c2 Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rw-r--r--sc/source/ui/condformat/colorformat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/colorformat.cxx b/sc/source/ui/condformat/colorformat.cxx
index 867f29f2e205..daa14a816ee3 100644
--- a/sc/source/ui/condformat/colorformat.cxx
+++ b/sc/source/ui/condformat/colorformat.cxx
@@ -288,7 +288,7 @@ IMPL_LINK_NOARG( ScDataBarSettingsDlg, OkBtnHdl )
mpNumberFormatter->IsNumberFormat(aMinString, nIndex, nMinValue);
nIndex = 0;
double nMaxValue = 0;
- mpNumberFormatter->IsNumberFormat(aMaxString, nIndex, nMinValue);
+ mpNumberFormatter->IsNumberFormat(aMaxString, nIndex, nMaxValue);
if(rtl::math::approxEqual(nMinValue, nMaxValue) || nMinValue > nMaxValue)
bWarn = true;
}