svx/source/fmcomp/gridcell.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit b8db739c20f7a174702bab34eb9373ee3d0a9d02 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 1 14:00:49 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jul 1 18:05:23 2020 +0200 don't use a variable called 'min' to store a max value Change-Id: If21dcd572147d8aeffd2fe2c30b3c8f7b2366960 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97626 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 06ac175b99e5..b502d39b6daa 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1384,13 +1384,13 @@ void DbFormattedField::Init( vcl::Window& rParent, const Reference< XRowSet >& x bool bClearMax = true; if (::comphelper::hasProperty(FM_PROP_EFFECTIVE_MAX, xUnoModel)) { - Any aMin( xUnoModel->getPropertyValue(FM_PROP_EFFECTIVE_MAX)); - if (aMin.getValueType().getTypeClass() != TypeClass_VOID) + Any aMax(xUnoModel->getPropertyValue(FM_PROP_EFFECTIVE_MAX)); + if (aMax.getValueType().getTypeClass() != TypeClass_VOID) { - DBG_ASSERT(aMin.getValueType().getTypeClass() == TypeClass_DOUBLE, "DbFormattedField::Init : the model has an invalid max value !"); - double dMin = ::comphelper::getDouble(aMin); - static_cast<FormattedField*>(m_pWindow.get())->SetMaxValue(dMin); - static_cast<FormattedField*>(m_pPainter.get())->SetMaxValue(dMin); + DBG_ASSERT(aMax.getValueType().getTypeClass() == TypeClass_DOUBLE, "DbFormattedField::Init : the model has an invalid max value !"); + double dMax = ::comphelper::getDouble(aMax); + static_cast<FormattedField*>(m_pWindow.get())->SetMaxValue(dMax); + static_cast<FormattedField*>(m_pPainter.get())->SetMaxValue(dMax); bClearMax = false; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits