sw/source/core/edit/eddel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f8c361927f9ae05887c1a8f337a9df88abb19474 Author: Cédric Bosdonnat <cedric.bosdonnat....@free.fr> Date: Thu Jan 5 17:53:10 2012 +0100 fdo#40250: safer protection check... why using the layout for this? diff --git a/sw/source/core/edit/eddel.cxx b/sw/source/core/edit/eddel.cxx index 85d27e4..67deb43 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 );
_______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits