Issue 43546 - crash in wizard Effect preview ...
Summary: crash in wizard Effect preview ...
Status: CLOSED DUPLICATE of issue 42423
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: 680m79
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: clippka
QA Contact: issues@graphics
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 15:41 UTC by mmeeks
Modified: 2005-05-03 12:51 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2005-02-25 15:41:55 UTC
Steps to reproduce:
1) Launch OpenOffice 
2) Click on File - New - Presentation
3) Presentation wizard pops up.
4) Select Empty presentation and click next
5) In screen 2 of the wizard and click next
6) Choose any effect in screen 3

Patch fixes the crash - although, I'm still not getting a nice preview of the
effect for some reason:

--- sd/source/ui/slideshow/slideshowimpl.cxx	28 Jan 2005 15:53:08 -0000	1.9
+++ sd/source/ui/slideshow/slideshowimpl.cxx	25 Feb 2005 15:38:47 -0000
@@ -455,10 +455,13 @@ bool SlideshowImpl::startPreview( 
 			mpView->AddWin( mpShowWindow );
 
 		// call resize handler
-		const Rectangle& aContentRect =
mpViewShell->GetViewShellBase().getClientRectangle();
-		maPresSize = aContentRect.GetSize();
-		mpShowWindow->SetPosPixel( aContentRect.TopLeft() );
-		resize( maPresSize );
+		if (mpViewShell)
+		{
+			const Rectangle& aContentRect =
mpViewShell->GetViewShellBase().getClientRectangle();
+			maPresSize = aContentRect.GetSize();
+			mpShowWindow->SetPosPixel( aContentRect.TopLeft() );
+			resize( maPresSize );
+		}
 
 		sal_Int32 nPropertyCount = 1;
 		if( mxPreviewAnimationNode.is() )

stack trace (obviously):

#0  0x43e69720 in SfxShell::GetViewShell () from ./libsfx680li.so
#1  0x466801cf in sd::ViewShell::GetViewShellBase () from ./libsd680li.so
#2  0x469443ff in sd::SlideshowImpl::startPreview () from ./libsd680li.so
#3  0x4693fa7c in sd::Slideshow::startPreview () from ./libsd680li.so
#4  0x4679037f in SdDocPreviewWin::startPreview () from ./libsd680li.so
#5  0x46b178ae in AssistentDlgImpl::EffectPreviewHdl () from ./libsdui680li.so
#6  0x46b177f2 in AssistentDlgImpl::LinkStubEffectPreviewHdl () from
./libsdui680li.so
#7  0x40171d65 in Timer::Timeout () at gen.hxx:127
#8  0x40171a69 in ImplTimerCallbackProc () at gen.hxx:127
Comment 1 wolframgarten 2005-02-28 08:02:41 UTC
Reassigned....
Comment 2 clippka 2005-03-08 08:34:53 UTC
thank you for the patch. This issue has already been fixed. closing this one

*** This issue has been marked as a duplicate of 42423 ***
Comment 3 clippka 2005-05-03 12:51:36 UTC
closed