Kaydet (Commit) 992c3472 authored tarafından Petr Mladek's avatar Petr Mladek

Merge remote-tracking branch 'origin/libreoffice-3-4'

...@@ -500,7 +500,17 @@ void SlideShowView::updateimpl( ::osl::ClearableMutexGuard& rGuard, SlideshowImp ...@@ -500,7 +500,17 @@ void SlideShowView::updateimpl( ::osl::ClearableMutexGuard& rGuard, SlideshowImp
if( pSlideShow ) if( pSlideShow )
{ {
::rtl::Reference< SlideshowImpl > aSLGuard( pSlideShow ); ::rtl::Reference< SlideshowImpl > aSLGuard( pSlideShow );
if( mbFirstPaint )
{
mbFirstPaint = false;
SlideshowImpl* pSlideShow = mpSlideShow;
rGuard.clear(); rGuard.clear();
if( pSlideShow )
pSlideShow->onFirstPaint();
} else
rGuard.clear();
pSlideShow->startUpdateTimer(); pSlideShow->startUpdateTimer();
} }
} }
......
...@@ -1362,7 +1362,7 @@ public: ...@@ -1362,7 +1362,7 @@ public:
::boost::dynamic_pointer_cast<DrawViewShell>(mrBase.GetMainViewShell())); ::boost::dynamic_pointer_cast<DrawViewShell>(mrBase.GetMainViewShell()));
if ( ! mpPrintView) 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()) if (nIndex<0 || sal::static_int_cast<sal_uInt32>(nIndex)>=maPrinterPages.size())
return; return;
......
...@@ -555,7 +555,7 @@ sal_Bool DrawView::IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const ...@@ -555,7 +555,7 @@ sal_Bool DrawView::IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const
void DrawView::MakeVisible(const Rectangle& rRect, ::Window& rWin) void DrawView::MakeVisible(const Rectangle& rRect, ::Window& rWin)
{ {
if (!rRect.IsEmpty()) if (!rRect.IsEmpty() && mpDrawViewShell)
{ {
mpDrawViewShell->MakeVisible(rRect, rWin); mpDrawViewShell->MakeVisible(rRect, rWin);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment