summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-03-20 20:48:40 +0530
committerAndras Timar <andras.timar@collabora.com>2017-03-24 12:39:34 +0100
commit15520e1f56ee6dee0ab45fff764b3352e819f7af (patch)
treeb3ca72dd162e4001a914d79efd93361a64fe1b1e /svx
parentaf264a481eea8bd0e70e7623ca6628408d436963 (diff)
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 <ci@libreoffice.org> Reviewed-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 551e86ff278d4608a54d311f387ca57ef4732000) Reviewed-on: https://gerrit.libreoffice.org/35502 (cherry picked from commit 181cbe104b9f8f0d0812db082d68f4d5e1bc281b)
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/ctredlin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 26dd99617aeb..105aaebf3d05 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');