Changeset 749


Ignore:
Timestamp:
01/24/14 11:43:54 (10 years ago)
Author:
jts21
Message:

Fix bug with setting title position when title doesn't have a parent, also add readme for assets/resources

Location:
trunk/src/org/expeditee
Files:
1 added
1 edited

Legend:

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

    r745 r749  
    437437                        if (UserSettings.TitleTemplate.get() == null) {
    438438                                frameTitle = new Text(getNextItemID(), title);
    439                                 /*
    440                                  * Need to set the parent otherwise an exception is thrown when
    441                                  * new profile is created
    442                                  */
    443                                 frameTitle.setParent(this);
    444                                 frameTitle.resetTitlePosition();
    445439                        } else {
    446440                                frameTitle = UserSettings.TitleTemplate.get().copy();
    447441                                frameTitle.setID(this.getNextItemID());
    448442                                frameTitle.setText(title);
    449                                 frameTitle.resetTitlePosition();
    450                         }
     443                        }
     444                        /*
     445                         * Need to set the parent otherwise an exception is thrown when
     446                         * new profile is created
     447                         */
     448                        frameTitle.setParent(this);
     449                        frameTitle.resetTitlePosition();
    451450                        addItem(frameTitle);
    452451                } else {
Note: See TracChangeset for help on using the changeset viewer.