summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2013-06-18 17:02:36 +0200
committerAndras Timar <atimar@suse.com>2013-06-18 15:28:16 +0000
commit78c6f41401da08d27301d09d3d04ad01cb6df939 (patch)
tree1ca5ae44f3d0695ffb0ed963d5b11190e61ec0d8 /sw
parent49c783437f37b52f1feeb415d1fc9274b185a488 (diff)
fdo#65666 keep tab characters in footnote settings of sections, too
Change-Id: I9728ffb7ddae2ca58af083a4748585b0ca8d1437 Reviewed-on: https://gerrit.libreoffice.org/4342 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dialog/uiregionsw.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx
index 7f476f10d29f..08cf79dd7ac3 100644
--- a/sw/source/ui/dialog/uiregionsw.cxx
+++ b/sw/source/ui/dialog/uiregionsw.cxx
@@ -1970,8 +1970,8 @@ sal_Bool SwSectionFtnEndTabPage::FillItemSet( SfxItemSet& rSet )
{
case FTNEND_ATTXTEND_OWNNUMANDFMT:
aFtn.SetNumType( aFtnNumViewBox.GetSelectedNumberingType() );
- aFtn.SetPrefix( aFtnPrefixED.GetText() );
- aFtn.SetSuffix( aFtnSuffixED.GetText() );
+ aFtn.SetPrefix( aFtnPrefixED.GetText().replaceAll("\\t", "\t") ); // fdo#65666
+ aFtn.SetSuffix( aFtnSuffixED.GetText().replaceAll("\\t", "\t") );
// no break;
case FTNEND_ATTXTEND_OWNNUMSEQ:
@@ -1991,8 +1991,8 @@ sal_Bool SwSectionFtnEndTabPage::FillItemSet( SfxItemSet& rSet )
{
case FTNEND_ATTXTEND_OWNNUMANDFMT:
aEnd.SetNumType( aEndNumViewBox.GetSelectedNumberingType() );
- aEnd.SetPrefix( aEndPrefixED.GetText() );
- aEnd.SetSuffix( aEndSuffixED.GetText() );
+ aEnd.SetPrefix( aEndPrefixED.GetText().replaceAll("\\t", "\t") );
+ aEnd.SetSuffix( aEndSuffixED.GetText().replaceAll("\\t", "\t") );
// no break;
case FTNEND_ATTXTEND_OWNNUMSEQ:
@@ -2061,8 +2061,8 @@ void SwSectionFtnEndTabPage::ResetState( sal_Bool bFtn,
pNumViewBox->SelectNumberingType( rAttr.GetNumType() );
pOffsetFld->SetValue( rAttr.GetOffset() + 1 );
- pPrefixED->SetText( rAttr.GetPrefix() );
- pSuffixED->SetText( rAttr.GetSuffix() );
+ pPrefixED->SetText( rAttr.GetPrefix().replaceAll("\t", "\\t") );
+ pSuffixED->SetText( rAttr.GetSuffix().replaceAll("\t", "\\t") );
switch( eState )
{