sc/source/ui/inc/duplicaterecordsdlg.hxx | 2 +- sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx | 4 ++-- sc/source/ui/view/tabvwsh3.cxx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 1f578b6244b9e2e434e4a746490047007acf330b Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Sep 28 11:32:25 2024 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Sep 28 12:49:28 2024 +0200 Typo: bDuplicatRows->bDuplicateRows Change-Id: I307c81013723d6b47cf2e7f98ce9ac2e179136f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174100 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins diff --git a/sc/source/ui/inc/duplicaterecordsdlg.hxx b/sc/source/ui/inc/duplicaterecordsdlg.hxx index 29bcd22e8e2f..aaa253af7348 100644 --- a/sc/source/ui/inc/duplicaterecordsdlg.hxx +++ b/sc/source/ui/inc/duplicaterecordsdlg.hxx @@ -29,7 +29,7 @@ struct DuplicatesResponse std::vector<int> vEntries; bool bRemove; // false ==> Select bool bIncludesHeaders; - bool bDuplicatRows; // false ==> DuplicateColumns + bool bDuplicateRows; // false ==> DuplicateColumns }; class ScDuplicateRecordsDlg : public weld::GenericDialogController diff --git a/sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx b/sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx index 3dd0eebc6ad5..11cbfbbbd4c3 100644 --- a/sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx +++ b/sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx @@ -198,9 +198,9 @@ IMPL_LINK_NOARG(ScDuplicateRecordsDlg, AllCheckBtnHdl, weld::Toggleable&, void) IMPL_LINK_NOARG(ScDuplicateRecordsDlg, OkHdl, weld::Button&, void) { maResponse.bRemove = m_xRadioRemove->get_active(); - maResponse.bDuplicatRows = m_xRadioRow->get_active(); + maResponse.bDuplicateRows = m_xRadioRow->get_active(); maResponse.bIncludesHeaders = m_xIncludesHeaders->get_active(); - int nCount = (maResponse.bDuplicatRows ? mrCellData[0].size() : mrCellData.size()); + int nCount = (maResponse.bDuplicateRows ? mrCellData[0].size() : mrCellData.size()); for (int i = 0; i < nCount; ++i) { diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx index ddaf0fd31fc6..4702091e82dc 100644 --- a/sc/source/ui/view/tabvwsh3.cxx +++ b/sc/source/ui/view/tabvwsh3.cxx @@ -829,7 +829,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) if (pReqArgs->HasItem(FN_PARAM_1, &pItem)) aResponse.bIncludesHeaders = static_cast<const SfxBoolItem*>(pItem)->GetValue(); if (pReqArgs->HasItem(FN_PARAM_2, &pItem)) - aResponse.bDuplicatRows = static_cast<const SfxBoolItem*>(pItem)->GetValue(); + aResponse.bDuplicateRows = static_cast<const SfxBoolItem*>(pItem)->GetValue(); if (pReqArgs->HasItem(FN_PARAM_3, &pItem)) aCellRange.StartColumn = static_cast<const SfxInt32Item*>(pItem)->GetValue(); if (pReqArgs->HasItem(FN_PARAM_4, &pItem)) @@ -859,7 +859,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) break; } int nLenEntries - = (aResponse.bDuplicatRows ? aCellRange.EndColumn - aCellRange.StartColumn + = (aResponse.bDuplicateRows ? aCellRange.EndColumn - aCellRange.StartColumn : aCellRange.EndRow - aCellRange.StartRow); for (int i = 0; i <= nLenEntries; ++i) aResponse.vEntries.push_back(i); @@ -916,7 +916,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) if (bHasData) GetViewData().GetViewShell()->HandleDuplicateRecords( xActiveSheet, aCellRange, aResponse.bRemove, aResponse.bIncludesHeaders, - aResponse.bDuplicatRows, aResponse.vEntries); + aResponse.bDuplicateRows, aResponse.vEntries); rReq.Done(); }