par->inset_iterator_end();
for (; it != end; ++it) {
if ((*it) == inset) {
+ text->setCursorIntern(this, par, it.getPos());
theLockingInset(inset);
return true;
}
void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
{
- if (available() && theLockingInset()) {
+ if (available() && theLockingInset() && !theLockingInset()->nodraw()) {
LyXCursor cursor = text->cursor;
Inset * locking_inset = theLockingInset()->getLockingInset();
{
// Check if the label 'from' appears more than once
vector<string> labels = buffer()->getLabelList();
- if (count(labels.begin(), labels.end(), from) > 1)
+ // count is broken on some systems, so use the HP version
+ int res;
+ count(labels.begin(), labels.end(), from, res);
+ if (res > 1)
return false;
return ChangeInsets(Inset::REF_CODE, from, to);