diff options
author | Nickson <nicksonthanda10@msn.com> | 2018-08-08 03:39:24 +0100 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2018-08-10 13:05:16 +0200 |
commit | 1da9b165b9c47f52db97fe70fe3e83626e580cdd (patch) | |
tree | 56e3d52155e425fdb5c8ebe30f303ce266b02a9b | |
parent | 53eda574a61396b6765cd1cb0ac9804c754ac4c1 (diff) |
tdf#111856 Playing video in impress is considered a modification
Change-Id: If7a2db2d37dc6230a76b79c79e6163a1b33be7d2
Reviewed-on: https://gerrit.libreoffice.org/58713
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
-rw-r--r-- | sd/source/ui/view/MediaObjectBar.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sd/source/ui/view/MediaObjectBar.cxx b/sd/source/ui/view/MediaObjectBar.cxx index b84d7b9ffac0..22c6ecf12062 100644 --- a/sd/source/ui/view/MediaObjectBar.cxx +++ b/sd/source/ui/view/MediaObjectBar.cxx @@ -129,9 +129,14 @@ void MediaObjectBar::Execute( SfxRequest const & rReq ) static_cast< sdr::contact::ViewContactOfSdrMediaObj& >( pObj->GetViewContact() ).executeMediaItem( static_cast< const ::avmedia::MediaItem& >( *pItem ) ); - //fdo #32598: after changing playback opts, set document's modified flag - SdDrawDocument& rDoc = mpView->GetDoc(); - rDoc.SetChanged(); + + //if only changing state then don't set modified flag (e.g. playing a video) + if( !(static_cast< const ::avmedia::MediaItem& >( *pItem ).getMaskSet() & AVMediaSetMask::STATE)) + { + //fdo #32598: after changing playback opts, set document's modified flag + SdDrawDocument& rDoc = mpView->GetDoc(); + rDoc.SetChanged(); + } } } } |