Changeset 782


Ignore:
Timestamp:
01/29/14 14:42:22 (10 years ago)
Author:
ngw8
Message:

Fixed a couple of bugs when ranging out text:

  • Holding shift when ranging was giving a "is not a valid frame name" error message (since the link of the extracted text was being set to an empty string rather than null).
  • Extracted text wasn't using item templates to define its appearance
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r746 r782  
    593593                                ranged.setActions(null);
    594594                                ranged.setData((List<String>) null);
    595                                 ranged.setLink("");
     595                                ranged.setLink(null);
    596596                        } else {
    597                                 // If shift isn't down, don't copy any attributes
    598                                 ranged = new Text("");
     597                                // If shift isn't down, don't copy any attributes, but base the new text item on the appropriate template
     598                                ranged = DisplayIO.getCurrentFrame().getItemTemplate(lastRanged.copySelectedText().charAt(0));
    599599                        }
    600600
Note: See TracChangeset for help on using the changeset viewer.