[Libreoffice-commits] .: Branch 'libreoffice-3-4-5' - svx/source

Petr Mladek pmladek at kemper.freedesktop.org
Tue Jan 3 02:17:59 PST 2012


 svx/source/table/svdotable.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 47fad446a73a27e3335b98745cf77ec9e8065f5f
Author: Christian Lippka ORACLE <christian.lippka at oracle.com>
Date:   Tue Dec 6 03:28:41 2011 +0100

    impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl
    
    impress210: #i117319# disconnect and reconnect to table style on change model in SdrTableObjImpl
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>
    Signed-off-by: Lubos Lunak <l.lunak at suse.cz>
    Signed-off-by: Radek Doulík <rodo at novell.com>

diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx
index b2c39fc..ef4b1a6 100644
--- a/svx/source/table/svdotable.cxx
+++ b/svx/source/table/svdotable.cxx
@@ -332,6 +332,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
@@ -362,6 +363,7 @@ void SdrTableObjImpl::SetModel(SdrModel* /*pOldModel*/, SdrModel* pNewModel)
 
     mxTableStyle = xNewTableStyle;
 
+    connectTableStyle();
     update();
 }
 


More information about the Libreoffice-commits mailing list