sw/source/uibase/config/usrpref.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit cf22475a22d7839aace779262b34e8fd98a51afb Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Feb 24 12:06:16 2021 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Feb 24 14:49:15 2021 +0100 sw: make sure g_DefaultAnchor is in sync with aPropNames This was already the case for one setting, but the same was not done when the default anchor setting was added, fix this now. Change-Id: Ia0cfa20468673117ff6580b270801e6605537ab6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111473 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index a376d29eaad1..2dbc4b74d966 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -112,6 +112,7 @@ Sequence<OUString> SwContentViewConfig::GetPropertyNames() const #if defined(__GNUC__) && !defined(__clang__) // clang 8.0.0 says strcmp isn't constexpr static_assert(std::strcmp("Update/Link", aPropNames[g_UpdateLinkIndex]) == 0); + static_assert(std::strcmp("Display/DefaultAnchor", aPropNames[g_DefaultAnchor]) == 0); #endif const int nCount = m_bWeb ? 12 : SAL_N_ELEMENTS(aPropNames); Sequence<OUString> aNames(nCount); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits