diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-08-10 17:13:04 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-08-12 22:51:57 +0200 |
commit | 6d6671b1779a74f35d29a68dd4802afdf7c6a5c1 (patch) | |
tree | 4afafa33a7ef575feb4d2fffefa662f0ddd663b0 /sw | |
parent | 6c741d38f828c75f3114c325fa7a0b08c8b476de (diff) |
sw: properly initialize the instance variables
Change-Id: Id12dcebe12540302e32a54e6c62b6773f6695e0c
Reviewed-on: https://gerrit.libreoffice.org/77362
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 79cee5d94399..deeaf1003da2 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -744,10 +744,27 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) m_nRightBorderDistance( 0 ), m_eLastSearchCommand( static_cast<SvxSearchCmd>(0xFFFF) ), m_bWheelScrollInProgress(false), + m_bCenterCursor(false), + m_bTopCursor(false), + m_bTabColFromDoc(false), + m_bTabRowFromDoc(false), + m_bSetTabColFromDoc(false), + m_bSetTabRowFromDoc(false), + m_bAttrChgNotified(false), + m_bAttrChgNotifiedWithRegistrations(false), + m_bVerbsActive(false), + m_bDrawRotate(false), + m_bDrawSelMode(true), + m_bShowAtResize(true), + m_bInOuterResizePixel(false), + m_bInInnerResizePixel(false), + m_bPasteState(false), + m_bPasteSpecialState(false), m_bInMailMerge(false), m_bInDtor(false), m_bOldShellWasPagePreview(false), m_bIsPreviewDoubleClick(false), + m_bMakeSelectionVisible(false), m_nLOKPageUpDownOffset(0) { static bool bRequestDoubleBuffering = getenv("VCL_DOUBLEBUFFERING_ENABLE"); @@ -761,12 +778,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) // If the view is switch from one to another, the 'old' view is given by // parameter <pOldSh>. - m_bCenterCursor = m_bTopCursor = m_bTabColFromDoc = m_bTabRowFromDoc = - m_bSetTabColFromDoc = m_bSetTabRowFromDoc = m_bAttrChgNotified = m_bAttrChgNotifiedWithRegistrations = - m_bVerbsActive = m_bDrawRotate = m_bInOuterResizePixel = m_bInInnerResizePixel = - m_bPasteState = m_bPasteSpecialState = m_bMakeSelectionVisible = false; - - m_bShowAtResize = m_bDrawSelMode = bDocSzUpdated = true; + bDocSzUpdated = true; CreateScrollbar( true ); CreateScrollbar( false ); |