[hg] main-silver: Fixing GuardedSectionManagerTest.

  • From: Jan Lahoda < >
  • To: ,
  • Subject: [hg] main-silver: Fixing GuardedSectionManagerTest.
  • Date: Wed, 10 Jul 2013 23:36:21 -0700

changeset c6190e628c07 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c6190e628c07
description:
        Fixing GuardedSectionManagerTest.

diffstat:

 editor.lib/src/org/netbeans/editor/GuardedDocument.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/editor.lib/src/org/netbeans/editor/GuardedDocument.java 
b/editor.lib/src/org/netbeans/editor/GuardedDocument.java
--- a/editor.lib/src/org/netbeans/editor/GuardedDocument.java
+++ b/editor.lib/src/org/netbeans/editor/GuardedDocument.java
@@ -188,8 +188,8 @@
 
     public boolean isPosGuarded(int offset) {
         Object o = getProperty(EDITABLE_PROP);
-        if (o != null) {
-            return !(Boolean)o;
+        if (o != null && !(Boolean)o) {
+            return true;
         }
         if (!modifiable) { // if whole doc is readonly due to CES 
modificationListener veto
             return true;

[hg] main-silver: Fixing GuardedSectionManagerTest.

Jan Lahoda 07/11/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 348 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close