Ignore:
Timestamp:
09/07/18 16:22:13 (6 years ago)
Author:
bln4
Message:

org.expeditee.items.Text ->

Fixed an issue with all text items having the same Font object.
Added some curly brackets to help David sleep at night.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Text.java

    r1101 r1116  
    2020
    2121import java.io.File;
    22 
    2322import java.util.ArrayList;
    2423import java.util.Collection;
     
    4039import org.expeditee.core.TextLayout;
    4140import org.expeditee.core.bounds.AxisAlignedBoxBounds;
    42 import org.expeditee.core.bounds.CombinationBoxBounds;
    4341import org.expeditee.core.bounds.PolygonBounds;
    4442import org.expeditee.gio.EcosystemManager;
     
    12491247        public Font getPaintFont()
    12501248        {
    1251                 if (getFont() == null) return EcosystemManager.getFontManager().getDefaultFont();
    1252 
     1249                if (getFont() == null) {
     1250                        return EcosystemManager.getFontManager().getDefaultFont().clone();
     1251                }
    12531252                return getFont();
    12541253        }
Note: See TracChangeset for help on using the changeset viewer.