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();