[Libreoffice-commits] core.git: cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 11 13:58:36 UTC 2020
cui/source/tabpages/tabstpge.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 65a06cfcfba0743584faca9d6e2a3c0d51ece45b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jan 10 21:13:04 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jan 11 14:58:03 2020 +0100
Resolves: tdf#127417 delete-all tabs doesn't work
since...
commit 1e2682235cded9a7cd90e55f0bfc60a1285e9a46
Date: Thu Apr 18 19:25:06 2019 +0200
WIP: Further preparations for deeper Item changes
because since then aNewTabs is cloned, but on delete-all
aNewTabs is reset to a SvxTabStopItem with a 0 WhichId
so its clones are useless
Change-Id: I725bec90d8915b3546afeed590f21ebdbbdaa355
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86578
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx
index 70ede0a40e3d..bc2e51a1e07a 100644
--- a/cui/source/tabpages/tabstpge.cxx
+++ b/cui/source/tabpages/tabstpge.cxx
@@ -520,7 +520,7 @@ IMPL_LINK_NOARG(SvxTabulatorTabPage, DelAllHdl_Impl, weld::Button&, void)
{
if ( aNewTabs->Count() )
{
- aNewTabs = std::make_unique<SvxTabStopItem>( 0 );
+ aNewTabs = std::make_unique<SvxTabStopItem>(GetWhich(SID_ATTR_TABSTOP));
InitTabPos_Impl();
}
}
More information about the Libreoffice-commits
mailing list