- Fix: FLEX-34057 - RTE on pasting empty data after Excel operation - Removed unused imports
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/eb510bf5 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/eb510bf5 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/eb510bf5 Branch: refs/heads/master Commit: eb510bf5bf34481ce9e1ae5db88f6d36546e0ab0 Parents: e7611cb Author: piotrz <[email protected]> Authored: Sat Mar 22 22:18:21 2014 +0100 Committer: piotrz <[email protected]> Committed: Sat Mar 22 22:18:21 2014 +0100 ---------------------------------------------------------------------- .../projects/spark/src/spark/components/RichEditableText.as | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/eb510bf5/frameworks/projects/spark/src/spark/components/RichEditableText.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/spark/src/spark/components/RichEditableText.as b/frameworks/projects/spark/src/spark/components/RichEditableText.as index 5746175..9226971 100644 --- a/frameworks/projects/spark/src/spark/components/RichEditableText.as +++ b/frameworks/projects/spark/src/spark/components/RichEditableText.as @@ -80,11 +80,9 @@ package spark.components import mx.core.IIMESupport; import mx.core.ISystemCursorClient; import mx.core.UIComponent; - import mx.core.mx_internal; import mx.events.FlexEvent; import mx.managers.IFocusManager; import mx.managers.IFocusManagerComponent; - import mx.resources.ResourceManager; import mx.utils.StringUtil; import spark.components.supportClasses.RichEditableTextContainerManager; @@ -4749,7 +4747,11 @@ package spark.components if (!multiline) { var po:PasteOperation = PasteOperation(op); - + + // Make sure the clipboard has something to paste. + if (po.textScrap == null || po.textScrap.textFlow == null) + return; + // If copied/cut from displayAsPassword field the pastedText // is '*' characters but this is correct. var pastedText:String = staticPlainTextExporter.export(
