summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorChristian Lippka ORACLE <christian.lippka@oracle.com>2011-03-10 16:27:14 +0100
committerChristian Lippka ORACLE <christian.lippka@oracle.com>2011-03-10 16:27:14 +0100
commit19402aecde9ba3af2ae5157633050e188dff7ca8 (patch)
tree037186da358f6966880920ce67fccc6cd3c89ae2 /svx
parent545fe253b4913ea9411b54566afd5c858a20517b (diff)
impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/svdotable.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index 9ac652f5e025..5618a2880e31 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();
}