Commits

rt  committed 635deae

#i93524# Patch by b_michaelsen: something which got lost on CWS swenhancedfields2.

  • Participants
  • Parent commits 4dc9297

Comments (0)

Files changed (1)

File sw/source/core/crsr/pam.cxx

  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: pam.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
  *
  * This file is part of OpenOffice.org.
  *
 			}
 		}
 	}
-	if( !bRet )
-    {
-	    const SwDoc *pDoc=GetDoc();
-	    SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL );
-	    SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA );
-	    bRet = ( pA != pB );
-	    bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM );
-	    if( bProtectForm )
-            bRet |= ( pA==NULL || pB==NULL );
-	}
+// TODO: Form Protection when Enhanced Fields are enabled
+//	if( !bRet )
+//    {
+//	    const SwDoc *pDoc=GetDoc();
+//	    SwBookmark *pA = ( pDoc && pPoint ? pDoc->getFieldBookmarkFor( *pPoint ) : NULL );
+//	    SwBookmark *pB = ( pDoc && pMark ? pDoc->getFieldBookmarkFor( *pMark ) : pA );
+//	    bRet = ( pA != pB );
+//	    bool bProtectForm = pDoc->get( IDocumentSettingAccess::PROTECT_FORM );
+//	    if( bProtectForm )
+//            bRet |= ( pA==NULL || pB==NULL );
+//	}
 	return bRet;
 }