From: Jean-Marc Lasgouttes Date: Thu, 19 Jun 2003 13:55:31 +0000 (+0000) Subject: compilation fix X-Git-Tag: 1.6.10~16613 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cc7aad9324c07b54d3720189a0c8a18f20b449a6;p=features.git compilation fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7189 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 007c6b3314..e1986b7691 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-06-19 Jean-Marc Lasgouttes + + * CutAndPaste.C (availableSelections): small compilation fix for + ancient (gcc 2.9x) compilers + 2003-06-18 Lars Gullik Bjønnes * text3.C (cursorNext): add tmp var diff --git a/src/CutAndPaste.C b/src/CutAndPaste.C index 6d5e2e3116..f1057254e5 100644 --- a/src/CutAndPaste.C +++ b/src/CutAndPaste.C @@ -57,7 +57,9 @@ CutAndPaste::availableSelections(Buffer const & buffer) CutStack::const_iterator cit = cuts.begin(); CutStack::const_iterator end = cuts.end(); for (; cit != end; ++cit) { - ParagraphList const & pars = cit->first; + // we do not use cit-> here because gcc 2.9x does not + // like it (JMarc) + ParagraphList const & pars = (*cit).first; string asciiSel; ParagraphList::const_iterator pit = pars.begin(); ParagraphList::const_iterator pend = pars.end();