# HG changeset patch # User Ludovic Chabant # Date 1408405898 25200 # Node ID 3a13b43e77c19de66145e3986c6d91b972e2583b # Parent dc8a6ff88f3756e271ee30b01586c6bce370a81a Correctly set the current page on a pagination slicer. diff -r dc8a6ff88f37 -r 3a13b43e77c1 piecrust/data/iterators.py --- a/piecrust/data/iterators.py Mon Aug 18 16:51:16 2014 -0700 +++ b/piecrust/data/iterators.py Mon Aug 18 16:51:38 2014 -0700 @@ -230,6 +230,7 @@ self._pages = it_class(self._pages, *args, **kwargs) if self._pagination_slicer is None and it_class is SliceIterator: self._pagination_slicer = self._pages + self._pagination_slicer.current_page = self._current_page return self def _simpleNonSortedWrap(self, it_class, *args, **kwargs):