sw/source/uibase/utlui/content.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit adff0a290109954fbea63adaca8345a31d669ad5
Author:     Andrea Gelmini <andrea.gelm...@gelma.net>
AuthorDate: Mon Feb 1 18:36:47 2021 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Thu Feb 4 21:06:03 2021 +0100

    Fix typo in code
    
    Change-Id: I50bc2e4909bc34b431fcff8047b9184fa5cd7d9c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110267
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Jenkins

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 0de0d6a3c03f..aa639d399055 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -109,7 +109,7 @@ namespace {
     1513 make the outline content of the selected outline entry and children 
not visible
     1514 make the outline content of the selected entry and children visible
 */
-const sal_uInt32 TOGGLE_OUTLINE_CONTENT_VISIBLITY = 1512;
+const sal_uInt32 TOGGLE_OUTLINE_CONTENT_VISIBILITY = 1512;
 const sal_uInt32 HIDE_OUTLINE_CONTENT_VISIBILITY = 1513;
 const sal_uInt32 SHOW_OUTLINE_CONTENT_VISIBILITY = 1514;
 
@@ -1190,7 +1190,7 @@ static bool lcl_InsertExpandCollapseAllItem(const 
weld::TreeView& rContentTree,
 
 static void lcl_SetOutlineContentEntriesSensitivities(SwContentTree* pThis, 
const weld::TreeView& rContentTree, const weld::TreeIter& rEntry, weld::Menu& 
rPop)
 {
-    rPop.set_sensitive(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBLITY), 
false);
+    rPop.set_sensitive(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBILITY), 
false);
     rPop.set_sensitive(OString::number(HIDE_OUTLINE_CONTENT_VISIBILITY), 
false);
     rPop.set_sensitive(OString::number(SHOW_OUTLINE_CONTENT_VISIBILITY), 
false);
 
@@ -1301,8 +1301,8 @@ static void 
lcl_SetOutlineContentEntriesSensitivities(SwContentTree* pThis, cons
         rPop.set_sensitive(OString::number(SHOW_OUTLINE_CONTENT_VISIBILITY), 
bHasFolded);
     }
 
-    bIsRoot ? rPop.remove(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBLITY))
-            : 
rPop.set_sensitive(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBLITY), true);
+    bIsRoot ? rPop.remove(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBILITY))
+            : 
rPop.set_sensitive(OString::number(TOGGLE_OUTLINE_CONTENT_VISIBILITY), true);
 }
 
 IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
@@ -1321,7 +1321,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, 
rCEvt, bool)
 
     std::unique_ptr<weld::Menu> xSubPopOutlineContent = 
xBuilder->weld_menu("outlinecontent");
 
-    
xSubPopOutlineContent->append(OUString::number(TOGGLE_OUTLINE_CONTENT_VISIBLITY),
+    
xSubPopOutlineContent->append(OUString::number(TOGGLE_OUTLINE_CONTENT_VISIBILITY),
                                   
SwResId(STR_OUTLINE_CONTENT_VISIBILITY_TOGGLE));
     
xSubPopOutlineContent->append(OUString::number(HIDE_OUTLINE_CONTENT_VISIBILITY),
                                   
SwResId(STR_OUTLINE_CONTENT_VISIBILITY_HIDE_ALL));
@@ -3793,14 +3793,14 @@ void SwContentTree::ExecuteContextMenuAction(const 
OString& rSelectedPopupEntry)
     auto nSelectedPopupEntry = rSelectedPopupEntry.toUInt32();
     switch (nSelectedPopupEntry)
     {
-        case TOGGLE_OUTLINE_CONTENT_VISIBLITY:
+        case TOGGLE_OUTLINE_CONTENT_VISIBILITY:
         case HIDE_OUTLINE_CONTENT_VISIBILITY:
         case SHOW_OUTLINE_CONTENT_VISIBILITY:
         {
             m_pActiveShell->EnterStdMode();
             m_bIgnoreViewChange = true;
             SwOutlineContent* pCntFirst = 
reinterpret_cast<SwOutlineContent*>(m_xTreeView->get_id(*xFirst).toInt64());
-            if (nSelectedPopupEntry == TOGGLE_OUTLINE_CONTENT_VISIBLITY)
+            if (nSelectedPopupEntry == TOGGLE_OUTLINE_CONTENT_VISIBILITY)
             {
                 
m_pActiveShell->ToggleOutlineContentVisibility(pCntFirst->GetOutlinePos());
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to