From cc7aad9324c07b54d3720189a0c8a18f20b449a6 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 19 Jun 2003 13:55:31 +0000 Subject: [PATCH] compilation fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7189 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/CutAndPaste.C | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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(); -- 2.39.2