]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / pariterator.C
index c4d027f540c742f2b9c0471b08d10750d1f0245d..e8eb521638a88905dc3bf95df49fc2d94b5e989b 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "insets/inset.h"
 
-using lyx::par_type;
+using lyx::pit_type;
 
 
 ///
@@ -78,25 +78,25 @@ ParIterator & ParIterator::operator--()
 
 Paragraph & ParIterator::operator*() const
 {
-       return text()->getPar(par());
+       return text()->getPar(pit());
 }
 
 
-par_type ParIterator::pit() const
+pit_type ParIterator::pit() const
 {
-       return par();
+       return DocIterator::pit();
 }
 
 
 Paragraph * ParIterator::operator->() const
 {
-       return &text()->getPar(par());
+       return &text()->getPar(pit());
 }
 
 
-par_type ParIterator::outerPar() const
+pit_type ParIterator::outerPar() const
 {
-       return bottom().par();
+       return bottom().pit();
 }
 
 
@@ -151,13 +151,13 @@ ParConstIterator & ParConstIterator::operator++()
 
 Paragraph const & ParConstIterator::operator*() const
 {
-       return text()->getPar(par());
+       return text()->getPar(pit());
 }
 
 
 Paragraph const * ParConstIterator::operator->() const
 {
-       return &text()->getPar(par());
+       return &text()->getPar(pit());
 }