sc/source/ui/StatisticsDialogs/SamplingDialog.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit b89853d017f862de9dfadcf9efdbcf7d68feb945 Author: Justin Luth <justin_l...@sil.org> AuthorDate: Wed Nov 10 09:15:58 2021 +0200 Commit: Justin Luth <jl...@mail.com> CommitDate: Sat Nov 13 06:33:59 2021 +0100 tdf#142986 sc sampling: allow more than default (100) samples The default maximum for a spinbutton must be 100. For some reason, the previous setMax to maxint was removed in LO 6.3 in commit 2c5c20b19c349a4b7f6d78d69d8d57f9af5c351c. Change-Id: I846c1ce037db6ef3b8d48975e24b748cad0394d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124948 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_l...@sil.org> Reviewed-by: Eike Rathke <er...@redhat.com> (cherry picked from commit eb50d356ffbe5bd2e3de9ac574ddf28ce4e034ad) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124972 (cherry picked from commit 62d82a9a4108f715cf1a2bf15205adc28e9fd31a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124974 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-by: Justin Luth <jl...@mail.com> Tested-by: Justin Luth <jl...@mail.com> diff --git a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx index 608ba1a30fa1..fad4ac6d05a5 100644 --- a/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/SamplingDialog.cxx @@ -87,7 +87,9 @@ void ScSamplingDialog::Init() mxOutputRangeEdit->SetModifyHdl( aLink2); mxSampleSize->connect_value_changed( LINK( this, ScSamplingDialog, SamplingSizeValueModified )); + mxSampleSize->set_range(1, SAL_MAX_INT32); mxPeriod->connect_value_changed( LINK( this, ScSamplingDialog, PeriodValueModified )); + mxPeriod->set_range(1, SAL_MAX_INT32); mxPeriodicMethodRadio->connect_toggled( LINK( this, ScSamplingDialog, ToggleSamplingMethod ) ); mxRandomMethodRadio->connect_toggled( LINK( this, ScSamplingDialog, ToggleSamplingMethod ) );