summaryrefslogtreecommitdiff
path: root/sc/source/ui/StatisticsDialogs
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2018-09-13 20:15:37 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-09-14 07:06:11 +0200
commitd30259b6bb3f2dcace20e415f2d6187c4078db14 (patch)
treef85982c989ac3d26b683a41edd8ba18073f5f32a /sc/source/ui/StatisticsDialogs
parent94e5443c05f3ed47d51465b91d5312a7d010b716 (diff)
Fix typo in code
It passed "make check" on Linux Change-Id: I9edeef1f74414dd5d7dcf75c24934d8ba1f274bf Reviewed-on: https://gerrit.libreoffice.org/60473 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/StatisticsDialogs')
-rw-r--r--sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
index 564b0ea30372..845677c0522d 100644
--- a/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx
@@ -40,7 +40,7 @@ const sal_Int64 DIST_GEOMETRIC = 6;
const sal_Int64 DIST_NEGATIVE_BINOMIAL = 7;
const sal_Int64 DIST_UNIFORM_INTEGER = 8;
-const sal_Int64 PERCISION = 10000;
+const sal_Int64 PRECISION = 10000;
const sal_Int64 DIGITS = 4;
}
@@ -203,8 +203,8 @@ void ScRandomNumberGeneratorDialog::SelectGeneratorAndGenerateNumbers()
sal_Int64 parameterInteger1 = mpParameter1Value->GetValue();
sal_Int64 parameterInteger2 = mpParameter2Value->GetValue();
- double parameter1 = parameterInteger1 / static_cast<double>(PERCISION);
- double parameter2 = parameterInteger2 / static_cast<double>(PERCISION);
+ double parameter1 = parameterInteger1 / static_cast<double>(PRECISION);
+ double parameter2 = parameterInteger2 / static_cast<double>(PRECISION);
boost::optional<sal_Int8> aDecimalPlaces;
if (mpEnableRounding->IsChecked())
@@ -428,10 +428,10 @@ IMPL_LINK_NOARG(ScRandomNumberGeneratorDialog, DistributionChanged, ListBox&, vo
mpParameter2Value->SetMax(SAL_MAX_INT64);
mpParameter1Value->SetDecimalDigits(DIGITS);
- mpParameter1Value->SetSpinSize(PERCISION);
+ mpParameter1Value->SetSpinSize(PRECISION);
mpParameter2Value->SetDecimalDigits(DIGITS);
- mpParameter2Value->SetSpinSize(PERCISION);
+ mpParameter2Value->SetSpinSize(PRECISION);
switch(aSelectedId)
{
@@ -478,7 +478,7 @@ IMPL_LINK_NOARG(ScRandomNumberGeneratorDialog, DistributionChanged, ListBox&, vo
{
mpParameter1Text->SetText(ScResId(STR_RNG_PARAMETER_STANDARD_PROBABILITY));
mpParameter1Value->SetMin( 0 );
- mpParameter1Value->SetMax( PERCISION );
+ mpParameter1Value->SetMax( PRECISION );
mpParameter1Value->SetSpinSize(1000);
mpParameter2Text->Hide();
@@ -490,7 +490,7 @@ IMPL_LINK_NOARG(ScRandomNumberGeneratorDialog, DistributionChanged, ListBox&, vo
{
mpParameter1Text->SetText(ScResId(STR_RNG_PARAMETER_STANDARD_PROBABILITY));
mpParameter1Value->SetMin( 0 );
- mpParameter1Value->SetMax( PERCISION );
+ mpParameter1Value->SetMax( PRECISION );
mpParameter1Value->SetSpinSize(1000);
mpParameter2Text->SetText(ScResId(STR_RNG_PARAMETER_STANDARD_NUMBER_OF_TRIALS));