Kaydet (Commit) f8c36192 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#40250: safer protection check... why using the layout for this?

üst 8f823b7d
...@@ -89,7 +89,7 @@ void SwEditShell::DeleteSel( SwPaM& rPam, sal_Bool* pUndo ) ...@@ -89,7 +89,7 @@ void SwEditShell::DeleteSel( SwPaM& rPam, sal_Bool* pUndo )
} }
// geschuetze Boxen ueberspringen ! // geschuetze Boxen ueberspringen !
if( !pNd->IsCntntNode() || if( !pNd->IsCntntNode() ||
!((SwCntntNode*)pNd)->getLayoutFrm( GetLayout() )->IsProtected() ) !pNd->IsInProtectSect() )
{ {
// alles loeschen // alles loeschen
GetDoc()->DeleteAndJoin( aDelPam ); GetDoc()->DeleteAndJoin( aDelPam );
......
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