From bbb3412f1e362799cf6f80d1c744b5705be229bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Mon, 14 Jan 2002 00:26:17 +0000 Subject: [PATCH] bug 186 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3363 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView2.C | 7 ++++--- src/ChangeLog | 5 +++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/BufferView2.C b/src/BufferView2.C index 6072b45483..15f94713bb 100644 --- a/src/BufferView2.C +++ b/src/BufferView2.C @@ -650,9 +650,10 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to) { // Check if the label 'from' appears more than once vector labels = buffer()->getLabelList(); - // count is broken on some systems, so use the HP version - int res; - count(labels.begin(), labels.end(), from, res); + // count is broken on some systems, so use the HP version (anon) + // Which does not exist on certain systems, so _we_ + // use the standard version. (Lgb) + int res = count(labels.begin(), labels.end(), from); if (res > 1) return false; diff --git a/src/ChangeLog b/src/ChangeLog index b23fdf97a7..9e279e1d0f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-01-14 Lars Gullik Bjønnes + + * BufferView2.C (ChangeRefsIfUnique): use standard version of + count. + 2002-01-13 Jean-Marc Lasgouttes * bufferlist.C (readFile): create the buffer _after_ checking that -- 2.39.5