Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/4234
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/34/4234/1
fdo#65666 keep tab characters in footnote settings (Begin/After)
Change-Id: I3fbd0f2dea5926981c0cd351c3235f6b61e66aaa
---
M sw/source/ui/misc/docfnote.cxx
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index 70741dd..63f1dc9 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -162,8 +162,8 @@
// 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 @@
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() ) );
--
To view, visit https://gerrit.libreoffice.org/4234
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3fbd0f2dea5926981c0cd351c3235f6b61e66aaa
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-1
Gerrit-Owner: Németh László <nemeth@numbertext.org>
Context
- [PATCH libreoffice-4-1] fdo#65666 keep tab characters in footnote settings (Begin/Af... · via Code Review
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.