mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
bug 186
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3363 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5614c0459a
commit
bbb3412f1e
@ -650,9 +650,10 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to)
|
||||
{
|
||||
// Check if the label 'from' appears more than once
|
||||
vector<string> 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;
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-01-14 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* BufferView2.C (ChangeRefsIfUnique): use standard version of
|
||||
count.
|
||||
|
||||
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* bufferlist.C (readFile): create the buffer _after_ checking that
|
||||
|
Loading…
Reference in New Issue
Block a user