You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/05/09 18:00:01 UTC

[3/6] git commit: [flex-asjs] [refs/heads/tlf] - Backspace key wants to do shallow copy

Backspace key wants to do shallow copy


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/95c47d3a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/95c47d3a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/95c47d3a

Branch: refs/heads/tlf
Commit: 95c47d3a03261b0b4977bd4285bcad8705f0c8a5
Parents: fa71222
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 9 08:09:53 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 9 08:14:03 2017 -0700

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/95c47d3a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as
index c823f34..a36fe4b 100644
--- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as
+++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/TextFlow.as
@@ -305,7 +305,7 @@ package org.apache.flex.textLayout.elements
 		 * 
 		 */
 		 
-		public function TextFlow(tlfFactory:ITLFFactory,config:IConfiguration = null)
+		public function TextFlow(tlfFactory:ITLFFactory = null,config:IConfiguration = null)
 		{
 			_tlfFactory = tlfFactory;
 			super();
@@ -344,6 +344,7 @@ package org.apache.flex.textLayout.elements
 		public override function shallowCopy(startPos:int = 0, endPos:int = -1):IFlowElement
 		{		
 			var retFlow:TextFlow = super.shallowCopy(startPos, endPos) as TextFlow;
+			retFlow._tlfFactory = _tlfFactory;
 			retFlow._configuration = _configuration;
 			retFlow._generation = _nextGeneration++;
 			if (formatResolver)