[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 14 05:06:37 UTC 2018


 sc/source/ui/StatisticsDialogs/RandomNumberGeneratorDialog.cxx |   14 +++++-----
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit d30259b6bb3f2dcace20e415f2d6187c4078db14
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Thu Sep 13 20:15:37 2018 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Sep 14 07:06:11 2018 +0200

    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 at yahoo.fr>

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));


More information about the Libreoffice-commits mailing list