Kaydet (Commit) 7e8b4756 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_2: disable layout-cache for now

Both reading & writing.

Change-Id: I301bc80549e25c21961b8e79db420e81ab40f8f7
üst ede29e57
......@@ -852,7 +852,9 @@ ErrCode XMLReader::Read( SwDoc &rDoc, const OUString& rBaseURL, SwPaM &rPaM, con
aFilterArgs, rName, true );
if( !(IsOrganizerMode() || IsBlockMode() || m_bInsertMode ||
m_aOption.IsFormatsOnly() ) )
m_aOption.IsFormatsOnly() ||
// sw_redlinehide: disable layout cache for now
(getenv("SW_REDLINEHIDE") && !*o3tl::doAccess<bool>(xInfoSet->getPropertyValue(sShowChanges)))))
{
try
{
......
......@@ -377,7 +377,9 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS
}
if( m_pDoc->getIDocumentLayoutAccess().GetCurrentViewShell() && m_pDoc->getIDocumentStatistics().GetDocStat().nPage > 1 &&
!(m_bOrganizerMode || m_bBlock || bErr) )
!(m_bOrganizerMode || m_bBlock || bErr ||
// sw_redlinehide: disable layout cache for now
m_pDoc->getIDocumentLayoutAccess().GetCurrentLayout()->IsHideRedlines()))
{
try
{
......
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