Kaydet (Commit) 6e0aa783 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

bnc#837302: Allow insertion of redlines with an empty author.

No idea why that was not allowed (since the initial import in 2000), we need
it for interoperability.

Change-Id: I475fa63f9a4a3219a2b898b6f7d81e0603d32c18
üst ae3cfef7
......@@ -1161,6 +1161,17 @@ DECLARE_OOXMLEXPORT_TEST(testBnc834035, "bnc834035.odt")
assertXPath(pXmlDoc, "/w:document/w:body/w:p[10]/w:hyperlink", "anchor", "_Toc363553908");
}
DECLARE_OOXMLEXPORT_TEST(testBnc837302, "bnc837302.docx")
{
// The problem was that text with empty author was not inserted as a redline
uno::Reference<text::XTextRange> xParagraph = getParagraph(1);
// previously 'AAA' was not an own run
getRun(xParagraph, 3, "AAA");
// interestingly the 'Insert' is set on the _previous_ run
CPPUNIT_ASSERT_EQUAL(OUString("Insert"), getProperty<OUString>(getRun(xParagraph, 2), "RedlineType"));
}
DECLARE_OOXMLEXPORT_TEST(testFdo68418, "fdo68418.docx")
{
// The problem was that in 'MSWordExportBase::SectionProperties' function in 'wrt8sty.cxx'
......
......@@ -290,8 +290,7 @@ bool SwDoc::AppendRedline( SwRedline* pNewRedl, bool bCallDelete )
bool bMerged = false;
_CHECK_REDLINE( this )
if( IsRedlineOn() && !IsShowOriginal( meRedlineMode ) &&
!pNewRedl->GetAuthorString().isEmpty() )
if (IsRedlineOn() && !IsShowOriginal(meRedlineMode))
{
pNewRedl->InvalidateRange();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment