From 3c75009a677ae950105a65c699b16caf72b516b0 Mon Sep 17 00:00:00 2001 From: Mark Hung Date: Tue, 13 Jun 2017 23:35:40 +0800 Subject: writerfilter: prevent last character of field switch eaten 1. First quotation mark of \B command switch of TOC field command wasn't written when exporting. 2. Quotation mark wasn't ripped off when writerfilter parsing TOC field command. 3. FindInCommand accidently ripped that last character of the last command. Change-Id: If283776048f3c8d896c466cf4d742e44b6d85e96 Reviewed-on: https://gerrit.libreoffice.org/38745 Tested-by: Jenkins Reviewed-by: Mark Hung --- sw/source/filter/ww8/ww8atr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 2350dc65091d..15d8b4192bef 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -2065,7 +2065,7 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect ) } if(SwTOXElement::Bookmark & pTOX->GetCreateType()) { - sStr += "\\b "; + sStr += "\\b \""; OUString bName = pTOX->GetBookmarkName(); sStr += bName; sStr += sEntryEnd; -- cgit