summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-10-11 18:07:37 +0200
committerThorsten Behrens <thb@documentfoundation.org>2013-10-11 18:10:05 +0200
commit516ecd072f9dbfbacce77127a02b666ce387982d (patch)
tree2b2b75b4d5daaf34614dbaf7c20c20d33a736132 /sd/source
parentbe194006496368bfd5bd0d93ac45e729814961f1 (diff)
Restore persistent userpaint functionality in slideshow.
This was part of i103174 - Code from the ecntablet and eraser CWS; optionally improves user paint interactions in slideshow, and got accidentally cleaned away for being commented out. Change-Id: I4fb87a3e1cb834e10ae766ed8c58cd6f2397c45f
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index afc85dcbf749..33506755f475 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1422,6 +1422,13 @@ void SlideshowImpl::displayCurrentSlide (const bool bSkipAllMainSequenceEffects)
void SlideshowImpl::endPresentation()
{
+ if( maPresSettings.mbMouseAsPen)
+ {
+ Reference< XMultiServiceFactory > xDocFactory(mpDoc->getUnoModel(), UNO_QUERY );
+ if( xDocFactory.is() )
+ mxShow->registerUserPaintPolygons(xDocFactory);
+ }
+
if( !mnEndShowEvent )
mnEndShowEvent = Application::PostUserEvent( LINK(this, SlideshowImpl, endPresentationHdl) );
}