Skip to content

Commit

Permalink
Fix Collection Item Index Path Conversion (#262)
Browse files Browse the repository at this point in the history
* Fix the conversion order for collection index paths

* Update the changelog
  • Loading branch information
Adlai-Holler authored May 11, 2017
1 parent 4b114e8 commit f2c85fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion Source/ASCollectionView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

Expand Down

0 comments on commit f2c85fd

Please sign in to comment.