diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-08 16:56:16 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-13 12:54:54 +0100 |
commit | 4f679851dc2edcfdc4d7c45cb097acc0c80dab46 (patch) | |
tree | 0221371bb407d25b323b43f29beca016501d9f50 /sfx2/source/doc/objserv.cxx | |
parent | dcb921b8d29ea2dcdbfaccf845fcbd38d71af10c (diff) |
CMIS: after cancel-checkout mark the document non changed
Change-Id: I626bd6ab29da29d4cd312b56208e4a2d0697c2fe
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 2412dcc7b744..61bb81a42ba3 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -368,6 +368,10 @@ void SfxObjectShell::CancelCheckOut( ) { uno::Reference< document::XCmisDocument > xCmisDoc( GetModel(), uno::UNO_QUERY_THROW ); xCmisDoc->cancelCheckOut( ); + + uno::Reference< util::XModifiable > xModifiable( GetModel( ), uno::UNO_QUERY ); + if ( xModifiable.is( ) ) + xModifiable->setModified( sal_False ); } catch ( const uno::RuntimeException& e ) { |