tdf#131146 Linked Calc: changes are lost in last edited cell

Change-Id: I768ccc1d98a0785806986a6ffc70de057991e08a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90009
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
Serge Krot 2020-03-05 10:59:35 +01:00 committed by Thorsten Behrens
parent beabc0dedd
commit a91e19e308

View file

@ -91,6 +91,10 @@ void OCommonEmbeddedObject::Deactivate()
if ( !xClientSite.is() )
throw embed::WrongStateException(); //TODO: client site is not set!
// tdf#131146 close frame before saving of the document
// (during CloseFrame() call some changes could be detected not registered in util::XModifiable)
m_xDocHolder->CloseFrame();
// store document if it is modified
if ( xModif.is() && xModif->isModified() )
{
@ -110,8 +114,6 @@ void OCommonEmbeddedObject::Deactivate()
}
}
m_xDocHolder->CloseFrame();
xClientSite->visibilityChanged( false );
}