Kaydet (Commit) f1d303c6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Uninitialized value

Change-Id: I060fb2f8dda4a79b70e2fdf255e95b47b0d5630b
üst 827b44d3
......@@ -230,6 +230,8 @@ private:
bool m_bMacroExecAllowed : 1;
SwFrm* m_oldColFrm;
SW_DLLPRIVATE void UpdateCrsr(
sal_uInt16 eFlags = SwCrsrShell::SCROLLWIN|SwCrsrShell::CHKRANGE,
sal_Bool bIdleEnd = sal_False );
......@@ -825,7 +827,6 @@ public:
sal_Bool IsInRightToLeftText( const Point* pPt = 0 ) const;
void FirePageChangeEvent(sal_uInt16 nOldPage, sal_uInt16 nNewPage);
SwFrm* oldColFrm;
bool bColumnChange();
void FireSectionChangeEvent(sal_uInt16 nOldSection, sal_uInt16 nNewSection);
void FireColumnChangeEvent(sal_uInt16 nOldColumn, sal_uInt16 nNewColumn);
......
......@@ -491,11 +491,11 @@ bool SwCrsrShell::bColumnChange()
}
}
if(oldColFrm == pCurrCol)
if(m_oldColFrm == pCurrCol)
return sal_False;
else
{
oldColFrm = pCurrCol;
m_oldColFrm = pCurrCol;
return sal_True;
}
}
......@@ -2581,7 +2581,7 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin )
m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ),
m_eMvState( MV_NONE ),
m_sMarkedListId(),
m_nMarkedListLevel( 0 )
m_nMarkedListLevel( 0 ), m_oldColFrm(0)
{
SET_CURR_SHELL( this );
// only keep the position of the current cursor of the copy shell
......@@ -2596,7 +2596,6 @@ SwCrsrShell::SwCrsrShell( SwCrsrShell& rShell, Window *pInitWin )
m_bSetCrsrInReadOnly = sal_True;
m_pVisCrsr = new SwVisCrsr( this );
m_bMacroExecAllowed = rShell.IsMacroExecAllowed();
oldColFrm = NULL;
#if defined(ANDROID) || defined(IOS)
HideCrsr();
......@@ -2611,7 +2610,7 @@ SwCrsrShell::SwCrsrShell( SwDoc& rDoc, Window *pInitWin,
m_pBoxIdx( 0 ), m_pBoxPtr( 0 ), m_nCrsrMove( 0 ), m_nBasicActionCnt( 0 ),
m_eMvState( MV_NONE ), // state for crsr-travelling - GetCrsrOfst
m_sMarkedListId(),
m_nMarkedListLevel( 0 )
m_nMarkedListLevel( 0 ), m_oldColFrm(0)
{
SET_CURR_SHELL( this );
// create initial cursor and set it to first content position
......
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