[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Jan 11 12:33:47 PST 2011
sw/source/core/crsr/pam.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9b20c2fe47735ae7d5340b59b3bd47164fb6f59b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jan 11 20:33:41 2011 +0000
fix this to build
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx
index 28d706e..6d1b17d 100644
--- a/sw/source/core/crsr/pam.cxx
+++ b/sw/source/core/crsr/pam.cxx
@@ -841,6 +841,7 @@ BOOL SwPaM::HasReadonlySel( bool bFormView ) const
bool bAtStartA = pA != NULL && pA->GetMarkStart() == *GetPoint();
bool bAtStartB = pB != NULL && pB->GetMarkStart() == *GetMark();
bRet = ( pA != pB ) || bAtStartA || bAtStartB;
+ bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM );
if ( bProtectForm )
bRet |= ( pA == NULL || pB == NULL );
}
More information about the Libreoffice-commits
mailing list