Changeset 240


Ignore:
Timestamp:
11/13/02 01:06:13 (21 years ago)
Author:
piso
Message:

activate(): removed incorrect assertion. When restoring a named session, the
old buffer will no longer be in the buffer list when activate() is called.
Fixes bug 637460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Editor.java

    r206 r240  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Editor.java,v 1.16 2002-11-05 15:35:53 piso Exp $
     5 * $Id: Editor.java,v 1.17 2002-11-13 01:06:13 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    39533953            buf.readOnly = !buf.readOnly;
    39543954            changed = true;
    3955             // Let the user know if the file associated with a modified buffer 
     3955            // Let the user know if the file associated with a modified buffer
    39563956            // is no longer writable.
    39573957            if (buf.readOnly && buf.isLoaded() && buf.isModified())
     
    57135713    public void activate(Buffer buf)
    57145714    {
    5715         if (buffer != null)
    5716             Debug.assertTrue(bufferList.contains(buffer));
    57175715        if (buf == null)
    57185716            return;
     
    57235721            buf.initialize();
    57245722        clearStatusText();
    5725         if (buffer != null) {
     5723        if (buffer != null && bufferList.contains(buffer)) {
    57265724            // Save information about buffer being deactivated.
    57275725            buffer.autosave();
     
    61506148            setFocusToTextField();
    61516149    }
    6152    
     6150
    61536151    private static Method evaluateMethod;
    61546152
Note: See TracChangeset for help on using the changeset viewer.