[Libreoffice-commits] core.git: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Aug 10 11:05:41 UTC 2018
sd/source/ui/view/MediaObjectBar.cxx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 1da9b165b9c47f52db97fe70fe3e83626e580cdd
Author: Nickson <nicksonthanda10 at msn.com>
AuthorDate: Wed Aug 8 03:39:24 2018 +0100
Commit: Muhammet Kara <muhammet.kara at pardus.org.tr>
CommitDate: Fri Aug 10 13:05:16 2018 +0200
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 at pardus.org.tr>
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();
+ }
}
}
}
More information about the Libreoffice-commits
mailing list