--- sd/source/ui/view/ViewShellImplementation.cxx.old	2005-05-17 11:06:49.000000000 +0200
+++ sd/source/ui/view/ViewShellImplementation.cxx	2005-05-17 11:48:54.000000000 +0200
@@ -168,9 +168,6 @@
 
     AutoLayout aNewAutoLayout;
 
-    // #95981#
-    AutoLayout aOldAutoLayout;
-
     BOOL bBVisible;
     BOOL bBObjsVisible;
     const SfxItemSet* pArgs = rRequest.GetArgs();
--- sd/source/ui/view/sdwindow.cxx.old	2006-01-20 10:20:19.000000000 +0100
+++ sd/source/ui/view/sdwindow.cxx	2006-02-02 12:47:42.000000000 +0100
@@ -584,7 +584,7 @@
 		ULONG nX;
 		ULONG nY;
 
-		if( (nX != 0) && (nY != 0) )
+		if( (rZoomRect.GetHeight() != 0) && (rZoomRect.GetWidth() != 0) )
 		{
 			nX = (ULONG) ((double) aWinSize.Height()
 			   * (double) ZOOM_MULTIPLICATOR / (double) rZoomRect.GetHeight());
