diff options
author | Marc-Andre Laverdiere <marc-andre@atc.tcs.com> | 2011-07-25 14:07:58 +0530 |
---|---|---|
committer | Marc-Andre Laverdiere <marc-andre@atc.tcs.com> | 2011-07-29 11:15:18 +0530 |
commit | a64094c6ffe399655272daf7f9fcd57027252900 (patch) | |
tree | 681a480b9f8ceb174f59a4e4d0a4e47f3c134429 /sw | |
parent | 11bafe2406daf62aa01bbbbf5e400018501882be (diff) |
Fixed invalid pointer dereference
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/calcmove.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx index b0c0d7e383d4..bb9047c00a96 100644 --- a/sw/source/core/layout/calcmove.cxx +++ b/sw/source/core/layout/calcmove.cxx @@ -313,9 +313,9 @@ void SwFrm::PrepareMake() else if ( bCnt && sal_True == (bFoll = pThis->IsFollow()) && GetPrev() ) { - //Wenn der Master gereade ein CalcFollow ruft braucht die Kette - //nicht durchlaufen werden. Das spart Zeit und vermeidet Probleme. - if ( ((SwTxtFrm*)((SwTxtFrm*)this)->FindMaster())->IsLocked() ) + //Do not follow the chain when we need only one instance + const SwTxtFrm* pMaster = ((SwCntntFrm*)this)->FindMaster(); + if ( pMaster && pMaster->IsLocked() ) { MakeAll(); return; |