On Wed, Jun 26, 2013 at 5:49 AM, Stephan Witt <st.w...@gmx.net> wrote: > Am 26.06.2013 um 10:41 schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>: > >> Le 26/06/2013 10:07, Stephan Witt a écrit : >>> How does this look? >>> >>> bool Cursor::atFirstOrLastRowOfDocument(bool up) >>> { >>> Cursor dummy = *this; >>> bool result = dummy.atFirstOrLastRow(up); >>> while (result && dummy.depth() > 1) { >>> dummy.pop(); >>> result = dummy.atFirstOrLastRow(up); >>> } >>> return result; >>> } >> >> Yes, I prefer this version. >> >> JMarc > > That's the final patch then. >
Should this be committed to 2.1? Scott