diff options
author | László Németh <nemeth@numbertext.org> | 2013-06-12 11:22:27 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-06-13 13:16:43 +0000 |
commit | c0ec2caf1b35c5bc296f0ce86082eb0a6e2b19b2 (patch) | |
tree | 1e3d68f9e9a2e1fad941fba27f9c3fdafc98f66f /sw | |
parent | 36ecf35102c619b4747fc7ae9af49d4ad052ad8a (diff) |
fdo#65666 keep tab characters in footnote settings (Begin/After)
Change-Id: I3fbd0f2dea5926981c0cd351c3235f6b61e66aaa
Reviewed-on: https://gerrit.libreoffice.org/4234
Reviewed-by: Németh László <nemeth@numbertext.org>
Tested-by: Németh László <nemeth@numbertext.org>
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/misc/docfnote.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx index 70741dd77068..63f1dc9da573 100644 --- a/sw/source/ui/misc/docfnote.cxx +++ b/sw/source/ui/misc/docfnote.cxx @@ -162,8 +162,8 @@ void SwEndNoteOptionPage::Reset( const SfxItemSet& ) // art m_pNumViewBox->SelectNumberingType( pInf->aFmt.GetNumberingType()); m_pOffsetFld->SetValue(pInf->nFtnOffset + 1); - m_pPrefixED->SetText(pInf->GetPrefix()); - m_pSuffixED->SetText(pInf->GetSuffix()); + m_pPrefixED->SetText(pInf->GetPrefix().replaceAll("\t", "\\t")); // fdo#65666 + m_pSuffixED->SetText(pInf->GetSuffix().replaceAll("\t", "\\t")); const SwCharFmt* pCharFmt = pInf->GetCharFmt( *pSh->GetView().GetDocShell()->GetDoc()); @@ -368,8 +368,8 @@ sal_Bool SwEndNoteOptionPage::FillItemSet( SfxItemSet & ) pInf->nFtnOffset = static_cast< sal_uInt16 >(m_pOffsetFld->GetValue() -1); pInf->aFmt.SetNumberingType(m_pNumViewBox->GetSelectedNumberingType() ); - pInf->SetPrefix(m_pPrefixED->GetText()); - pInf->SetSuffix(m_pSuffixED->GetText()); + pInf->SetPrefix(m_pPrefixED->GetText().replaceAll("\\t", "\t")); + pInf->SetSuffix(m_pSuffixED->GetText().replaceAll("\\t", "\t")); pInf->SetCharFmt( lcl_GetCharFormat( pSh, m_pFtnCharTextTemplBox->GetSelectEntry() ) ); |