diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx index 00e6c9620dfd..e2147cd19f75 100644 --- a/sc/source/ui/inc/printfun.hxx +++ b/sc/source/ui/inc/printfun.hxx @@ -83,6 +83,21 @@ struct ScPrintState // Save Variables from ScPrintFunc long nTotalPages; long nPageStart; long nDocPages; + ScPrintState() + : nPrintTab(0) + , nStartCol(0) + , nStartRow(0) + , nEndCol(0) + , nEndRow(0) + , nZoom(0) + , nPagesX(0) + , nPagesY(0) + , nTabPages(0) + , nTotalPages(0) + , nPageStart(0) + , nDocPages(0) + { + } }; class ScPageRowEntry diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index 3380ebc4893d..0735c42de636 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -89,10 +89,12 @@ ScPreview::ScPreview( Window* pParent, ScDocShell* pDocSh, ScPreviewShell* pView Window( pParent ), nPageNo( 0 ), nZoom( 100 ), + nTabCount( 0 ), nTabsTested( 0 ), nPages(), nFirstAttr(), nTab( 0 ), + nTabPage( 0 ), nTabStart( 0 ), nDisplayStart( 0 ), aDate( Date::SYSTEM ), @@ -123,6 +125,7 @@ ScPreview::ScPreview( Window* pParent, ScDocShell* pDocSh, ScPreviewShell* pView bPageMargin ( false ), bColRulerMove( false ), mbHasEmptyRangeTable(false), + nLeftPosition( 0 ), mnScale( 0 ), nColNumberButttonDown( 0 ), nHeaderHeight ( 0 ),