From cbaadd31d3ff53f18a7b8d2b0af947328dc81d91 Mon Sep 17 00:00:00 2001 From: Christian Lippka ORACLE Date: Tue, 6 Dec 2011 03:28:41 +0100 Subject: impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl # HG changeset patch # User Christian Lippka ORACLE # Date 1299770834 -3600 # Node ID 8177bdbe49941e3c2a8b62c7c5cf166dcadb7a54 # Parent 6b1140cdac81a77836e5be80033f328a0956c94a impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl --- svx/source/table/svdotable.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svx') diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index d34772085522..f9b826974571 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -330,6 +330,7 @@ void SdrTableObjImpl::operator=( const SdrTableObjImpl& rSource ) void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel) { // try to find new table style + disconnectTableStyle(); Reference< XIndexAccess > xNewTableStyle; if( mxTableStyle.is() ) try @@ -360,6 +361,7 @@ void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel) mxTableStyle = xNewTableStyle; + connectTableStyle(); update(); } -- cgit