svx/source/dialog/ctredlin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 551e86ff278d4608a54d311f387ca57ef4732000 Author: Pranav Kant <[email protected]> Date: Mon Mar 20 20:48:40 2017 +0530 tdf#106382 - Fix incorrectly shown change tracking comments in dialog First item in the array is treated as the number of fields followed by their widths. There are only 4 such fields in case of writer, not 5. Change-Id: Iff6f21b54b73d4395d64d83f2acf1de2a19a251e Reviewed-on: https://gerrit.libreoffice.org/35484 Tested-by: Jenkins <[email protected]> Reviewed-by: Jan Holesovsky <[email protected]> diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index cc0f77434441..f8d9cf14be58 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -431,7 +431,7 @@ void SvxTPView::dispose() void SvxTPView::InsertWriterHeader() { - const long pTabs[] = { 5, 10, 20, 70, 120, 170 }; + const long pTabs[] = { 4 /* Length of rest of the array */, 10, 20, 70, 120 }; m_pViewData->SetTabs(pTabs); OUString aStrTab('\t'); @@ -448,7 +448,7 @@ void SvxTPView::InsertWriterHeader() void SvxTPView::InsertCalcHeader() { - const long pTabs[] = { 5, 10, 65, 120, 170, 220 }; + const long pTabs[] = { 5 /* Length of rest of the array */, 10, 65, 120, 170, 220 }; m_pViewData->SetTabs(pTabs); OUString aStrTab('\t'); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
