diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2020-08-28 12:17:11 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-08-31 14:51:48 +0200 |
commit | de81349e69ea229843a23cce1117f69f14862f6b (patch) | |
tree | 7aac1e8442f72b937ea33a82492f70cfa5fe3fcc /svx/source | |
parent | 19cf1b4fcfb9d9d17587e4224c3c3818952cd69c (diff) |
Fix typo in code
It passed "make check" on Linux
Change-Id: Iecaab4ab9f7d8e05930685aaf5a2eb2770abbd1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101601
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/form/navigatortree.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index c84ec322bc80..de01cc9763a6 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -803,11 +803,11 @@ namespace svxform // means moving the control) // collect the ancestors of the drop target (speeds up 3) - SvLBoxEntrySortedArray arrDropAnchestors; + SvLBoxEntrySortedArray arrDropAncestors; std::unique_ptr<weld::TreeIter> xLoop(m_xTreeView->make_iterator(_pTargetEntry)); do { - arrDropAnchestors.emplace(m_xTreeView->make_iterator(xLoop.get())); + arrDropAncestors.emplace(m_xTreeView->make_iterator(xLoop.get())); } while (m_xTreeView->iter_parent(*xLoop)); @@ -835,12 +835,12 @@ namespace svxform // test for 3) if (IsFormEntry(*rCurrent)) { - auto aIter = std::find_if(arrDropAnchestors.begin(), arrDropAnchestors.end(), + auto aIter = std::find_if(arrDropAncestors.begin(), arrDropAncestors.end(), [this, &rCurrent](const auto& rElem) { return m_xTreeView->iter_compare(*rElem, *rCurrent) == 0; }); - if ( aIter != arrDropAnchestors.end() ) + if ( aIter != arrDropAncestors.end() ) return DND_ACTION_NONE; } else if (IsFormComponentEntry(*rCurrent)) |