Fixed the cloned Letters to use the cloned StringBlock instead of the

original reference.
This commit is contained in:
Paul Speed 2016-12-04 14:24:34 -05:00 committed by Paul Speed
parent 157af24419
commit 440096441d

View File

@ -105,7 +105,7 @@ public class BitmapText extends Node {
// Change in behavior: The 'letters' field was not cloned or recreated // Change in behavior: The 'letters' field was not cloned or recreated
// before. I'm not sure how this worked and suspect BitmapText was just // before. I'm not sure how this worked and suspect BitmapText was just
// not cloneable if you planned to change the text later. -pspeed // not cloneable if you planned to change the text later. -pspeed
this.letters = new Letters(font, block, letters.getQuad().isRightToLeft()); this.letters = new Letters(font, this.block, letters.getQuad().isRightToLeft());
// Just noticed BitmapText is not even writable/readable really... // Just noticed BitmapText is not even writable/readable really...
// so I guess cloning doesn't come up that often. // so I guess cloning doesn't come up that often.