diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-01-05 17:53:10 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-01-05 17:54:42 +0100 |
commit | f8c361927f9ae05887c1a8f337a9df88abb19474 (patch) | |
tree | dd1e1aa06f649346077b1912261495e3b0ac14e3 /sw | |
parent | 8f823b7d39154d2044e08174a858f8ef357a151a (diff) |
fdo#40250: safer protection check... why using the layout for this?
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/eddel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/eddel.cxx b/sw/source/core/edit/eddel.cxx index 85d27e4c17d0..67deb434ebd3 100644 --- a/sw/source/core/edit/eddel.cxx +++ b/sw/source/core/edit/eddel.cxx @@ -89,7 +89,7 @@ void SwEditShell::DeleteSel( SwPaM& rPam, sal_Bool* pUndo ) } // geschuetze Boxen ueberspringen ! if( !pNd->IsCntntNode() || - !((SwCntntNode*)pNd)->getLayoutFrm( GetLayout() )->IsProtected() ) + !pNd->IsInProtectSect() ) { // alles loeschen GetDoc()->DeleteAndJoin( aDelPam ); |