Ignore:
Timestamp:
09/10/18 09:50:29 (6 years ago)
Author:
bln4
Message:

org.expeditee.gio.gesture.StandardGestureActions ->

Fixed bug were right click would try to range out 0 characters instead of making a copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/gesture/StandardGestureActions.java

    r1097 r1119  
    44784478                } else {
    44794479                        // If shift isn't down, don't copy any attributes, but base the new text item on the appropriate template
    4480                         ranged = DisplayController.getCurrentFrame().getItemTemplate(text.copySelectedText().charAt(0));
     4480                        final String copySelectedText = text.copySelectedText();
     4481                        if(copySelectedText.length() < 1) { return; }
     4482                        ranged = DisplayController.getCurrentFrame().getItemTemplate(copySelectedText.charAt(0));
    44814483                }
    44824484
Note: See TracChangeset for help on using the changeset viewer.