From a8b3570ca34a0423be0fc4f5e477ec12511853c4 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Thu, 11 May 2017 10:01:54 -0700 Subject: [PATCH 1/2] Fix the conversion order for collection index paths --- Source/ASCollectionView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ASCollectionView.mm b/Source/ASCollectionView.mm index 47d13e849..055a22629 100644 --- a/Source/ASCollectionView.mm +++ b/Source/ASCollectionView.mm @@ -715,7 +715,7 @@ - (NSIndexPath *)convertIndexPathToCollectionNode:(NSIndexPath *)indexPath if (indexPath.item == NSNotFound) { return indexPath; } else { - return [_dataController.visibleMap convertIndexPath:indexPath fromMap:_dataController.pendingMap]; + return [_dataController.pendingMap convertIndexPath:indexPath fromMap:_dataController.visibleMap]; } } From 7bec8e9b05f47335834a75acbd39926c492a45a2 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Thu, 11 May 2017 10:03:25 -0700 Subject: [PATCH 2/2] Update the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a37fe272..cbb9523bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,3 +19,4 @@ - [ASTextNode] Move to class method of drawRect:withParameters:isCancelled:isRasterizing: for drawing [Michael Schneider] (https://github.com/maicki)[#232](https://github.com/TextureGroup/Texture/pull/232) - [ASDisplayNode] Remove instance:-drawRect:withParameters:isCancelled:isRasterizing: (https://github.com/maicki)[#232](https://github.com/TextureGroup/Texture/pull/232) - [ASVideoNode] Added error reporing to ASVideoNode and it's delegate [#260](https://github.com/TextureGroup/Texture/pull/260) +- [ASCollectionNode] Fixed conversion of item index paths between node & view. [Adlai Holler](https://github.com/Adlai-Holler) [#262](https://github.com/TextureGroup/Texture/pull/262)