summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2024-09-28 11:32:25 +0200
committerJulien Nabet <serval2412@yahoo.fr>2024-09-28 12:49:28 +0200
commit1f578b6244b9e2e434e4a746490047007acf330b (patch)
tree45ab04cdf5b9499f33f4676feab5f70e09e84119 /sc/source/ui
parent6e9b04320c79b0105444242d0c8209bcb50d8dcc (diff)
Typo: bDuplicatRows->bDuplicateRows
Change-Id: I307c81013723d6b47cf2e7f98ce9ac2e179136f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174100 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/inc/duplicaterecordsdlg.hxx2
-rw-r--r--sc/source/ui/miscdlgs/duplicaterecordsdlg.cxx4
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx6
3 files changed, 6 insertions, 6 deletions
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();
}