diff options
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index cf3742d1315e..1bef40821ef1 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -139,7 +139,7 @@ bool LwpVirtualLayout::HonorProtection() return false; LwpVirtualLayout* pParent = dynamic_cast<LwpVirtualLayout*> (GetParent().obj().get()); - if(pParent && !pParent->IsHeader()) + if (pParent && !pParent->IsHeader() && pParent != this) { return pParent->HonorProtection(); } @@ -199,7 +199,7 @@ bool LwpVirtualLayout::HasProtection() return true; LwpVirtualLayout* pParent = dynamic_cast<LwpVirtualLayout*> (GetParent().obj().get()); - if(pParent && !pParent->IsHeader()) + if (pParent && !pParent->IsHeader() && pParent != this) { return pParent->HasProtection(); } |