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 <[email protected]> Authored: Tue Oct 14 00:11:54 2014 +0200 Committer: Frederic THOMAS <[email protected]> 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
