Kaydet (Commit) cbaadd31 authored tarafından Christian Lippka ORACLE's avatar Christian Lippka ORACLE Kaydeden (comit) Thorsten Behrens

impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl

# HG changeset patch
# User Christian Lippka ORACLE <christian.lippka@oracle.com>
# Date 1299770834 -3600
# Node ID 8177bdbe49941e3c2a8b62c7c5cf166dcadb7a54
# Parent  6b1140cdac81a77836e5be80033f328a0956c94a

impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl
üst b97726f4
......@@ -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();
}
......
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