summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-10 21:13:04 +0000
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-01-11 23:29:31 +0100
commit05398dc3dcce44632075734205261100490dd29c (patch)
tree1c3fcb164f745298c1e8e8f8851edba4d40d832d
parenta9d9abe590e310a82f23f297bc25609f91ae8540 (diff)
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/+/86580 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r--cui/source/tabpages/tabstpge.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/tabstpge.cxx b/cui/source/tabpages/tabstpge.cxx
index 12939d618a3d..575a3cfd08d4 100644
--- a/cui/source/tabpages/tabstpge.cxx
+++ b/cui/source/tabpages/tabstpge.cxx
@@ -530,7 +530,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();
}
}