mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +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
|
// Check if the label 'from' appears more than once
|
||||||
vector<string> labels = buffer()->getLabelList();
|
vector<string> labels = buffer()->getLabelList();
|
||||||
// count is broken on some systems, so use the HP version
|
// count is broken on some systems, so use the HP version (anon)
|
||||||
int res;
|
// Which does not exist on certain systems, so _we_
|
||||||
count(labels.begin(), labels.end(), from, res);
|
// use the standard version. (Lgb)
|
||||||
|
int res = count(labels.begin(), labels.end(), from);
|
||||||
if (res > 1)
|
if (res > 1)
|
||||||
return false;
|
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>
|
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||||
|
|
||||||
* bufferlist.C (readFile): create the buffer _after_ checking that
|
* bufferlist.C (readFile): create the buffer _after_ checking that
|
||||||
|
Loading…
Reference in New Issue
Block a user