summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-04-05 17:34:44 +0200
committerPetr Mladek <pmladek@suse.cz>2011-04-05 17:34:44 +0200
commit08f795fef4ac23e9252c3f0074adb23cd8b36ce4 (patch)
tree76e3ff1401e6ce49f8679266b60ef4620fdc7b8e /sd
parent486270c1b4b8595da6238222988e8d24932aca9a (diff)
parenta82087ada54119343ac425c5999aa6c72c094581 (diff)
Merge remote-tracking branch 'origin/libreoffice-3-3' into libreoffice-3-4
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slideshow/slideshowviewimpl.cxx12
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx2
-rw-r--r--sd/source/ui/view/drawview.cxx2
3 files changed, 13 insertions, 3 deletions
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx
index 62d0097e0353..0d0673d84414 100644
--- a/sd/source/ui/slideshow/slideshowviewimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx
@@ -500,7 +500,17 @@ void SlideShowView::updateimpl( ::osl::ClearableMutexGuard& rGuard, SlideshowImp
if( pSlideShow )
{
::rtl::Reference< SlideshowImpl > aSLGuard( pSlideShow );
- rGuard.clear();
+
+ if( mbFirstPaint )
+ {
+ mbFirstPaint = false;
+ SlideshowImpl* pSlideShow = mpSlideShow;
+ rGuard.clear();
+ if( pSlideShow )
+ pSlideShow->onFirstPaint();
+ } else
+ rGuard.clear();
+
pSlideShow->startUpdateTimer();
}
}
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index 3ccbf373dc7e..efb1cbcea2e4 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -1362,7 +1362,7 @@ public:
::boost::dynamic_pointer_cast<DrawViewShell>(mrBase.GetMainViewShell()));
if ( ! mpPrintView)
- mpPrintView.reset(new DrawView(mrBase.GetDocShell(), &rPrinter, pDrawViewShell.get()));
+ mpPrintView.reset(new DrawView(mrBase.GetDocShell(), &rPrinter, NULL));
if (nIndex<0 || sal::static_int_cast<sal_uInt32>(nIndex)>=maPrinterPages.size())
return;
diff --git a/sd/source/ui/view/drawview.cxx b/sd/source/ui/view/drawview.cxx
index 9da83f3659b5..2ce2b94e9e74 100644
--- a/sd/source/ui/view/drawview.cxx
+++ b/sd/source/ui/view/drawview.cxx
@@ -555,7 +555,7 @@ sal_Bool DrawView::IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const
void DrawView::MakeVisible(const Rectangle& rRect, ::Window& rWin)
{
- if (!rRect.IsEmpty())
+ if (!rRect.IsEmpty() && mpDrawViewShell)
{
mpDrawViewShell->MakeVisible(rRect, rWin);
}