summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unochart.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unochart.cxx')
-rw-r--r--sw/source/core/unocore/unochart.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index e5116fed96cf..13de49218ecf 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -1425,7 +1425,7 @@ void SwChartDataProvider::RemoveDataSequence( const SwTable &rTable, uno::Refere
m_aDataSequences[ &rTable ].erase( rxDataSequence );
}
-void SwChartDataProvider::InvalidateTable( const SwTable *pTable )
+void SwChartDataProvider::InvalidateTable( const SwTable *pTable, bool bImmediate )
{
OSL_ENSURE( pTable, "table pointer is NULL" );
if (!pTable)
@@ -1445,6 +1445,10 @@ void SwChartDataProvider::InvalidateTable( const SwTable *pTable )
xRef->setModified( true );
}
}
+
+ // tdf#122995 added Immediate-mode to allow non-timer-delayed Chart invalidation
+ if (bImmediate && !m_bDisposed)
+ pTable->GetFrameFormat()->GetDoc()->getIDocumentChartDataProviderAccess().GetChartControllerHelper().Disconnect();
}
void SwChartDataProvider::DeleteBox( const SwTable *pTable, const SwTableBox &rBox )