You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/14 09:13:10 UTC

git commit: [flex-sdk] [refs/heads/develop] - FLEX-33545 Fix rare RTE that can occur when editing in complex item renders.

Updated Branches:
  refs/heads/develop e1649ef1a -> 2afdd2534


FLEX-33545 Fix rare RTE that can occur when editing in complex item renders.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/2afdd253
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/2afdd253
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/2afdd253

Branch: refs/heads/develop
Commit: 2afdd253414f13700209fea85b743af202576aa0
Parents: e1649ef
Author: Justin Mclean <jm...@apache.org>
Authored: Tue May 14 17:10:15 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue May 14 17:10:15 2013 +1000

----------------------------------------------------------------------
 .../src/mx/controls/AdvancedDataGridBaseEx.as      |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/2afdd253/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
index edc4161..d17518f 100644
--- a/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
+++ b/frameworks/projects/advancedgrids/src/mx/controls/AdvancedDataGridBaseEx.as
@@ -8049,7 +8049,10 @@ public class AdvancedDataGridBaseEx extends AdvancedDataGridBase implements IIME
 
         if (event.reason == AdvancedDataGridEventReason.OTHER || !event.isDefaultPrevented())
         {
-            destroyItemEditor();
+			if (_editedItemPosition
+				&& event.rowIndex == _editedItemPosition.rowIndex
+				&& event.columnIndex == _editedItemPosition.columnIndex)
+            	destroyItemEditor();
         }
     }