You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2014/11/03 21:50:54 UTC

[12/44] git commit: [flex-tlf] [refs/heads/tables] - FLEX-34592: Can't use optionnal importer for TLF plainTextFormat and TextLayoutFormat

FLEX-34592: Can't use optionnal importer for TLF plainTextFormat and TextLayoutFormat


Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/553c899e
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/553c899e
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/553c899e

Branch: refs/heads/tables
Commit: 553c899e5c55fc41a13d38c263238fc1d9c395e9
Parents: 620baf2
Author: Frederic THOMAS <we...@gmail.com>
Authored: Tue Oct 14 00:11:54 2014 +0200
Committer: Frederic THOMAS <we...@gmail.com>
Committed: Tue Oct 14 00:11:54 2014 +0200

----------------------------------------------------------------------
 textLayout/src/flashx/textLayout/edit/TextClipboard.as | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/553c899e/textLayout/src/flashx/textLayout/edit/TextClipboard.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/edit/TextClipboard.as b/textLayout/src/flashx/textLayout/edit/TextClipboard.as
index b92cdbb..a9f4f19 100644
--- a/textLayout/src/flashx/textLayout/edit/TextClipboard.as
+++ b/textLayout/src/flashx/textLayout/edit/TextClipboard.as
@@ -179,9 +179,9 @@ package flashx.textLayout.edit
 					textScrap = new TextScrap(textFlow);
 				
 				/** Hint to the scrap about whether text is plain or formatted. If not set, scrap will inspect text for attributes. */
-				if (format == TextConverter.PLAIN_TEXT_FORMAT)
+				if (format == TextConverter.PLAIN_TEXT_FORMAT && textScrap)
 					textScrap.setPlainText(true);
-				else if (format == TextConverter.TEXT_LAYOUT_FORMAT)
+				else if (format == TextConverter.TEXT_LAYOUT_FORMAT && textScrap)
 					textScrap.setPlainText(false);
 				
 				// Backwards compatibility: check for older scrap format