Andre Poenitz wrote:
> return 0?
I don't understand, how do you click on button insets (or closed
collapsables) if they are not hit by insetFromCoords?
The inset *has* to be hit, it's the lyxtext inside that is "not present".
Maybe:
while ((inset_hit = text->checkInsetHit(x, y))) {
+ if (!inset_hit->isHiglyEditable())
+ break;
inset = inset_hit;
text = inset_hit->getText(0);
lyxerr << "Hit inset: " << inset << " at x: " << x
<< " y: " << y << endl;
theTempCursor.push(static_cast<UpdatableInset*>(inset));
}
or something? *Then*, we should open the inset, and *then* put the cursor
inside, right?
> Btw: I just noticed that this does set the cursor... maybe it should be
> split into a strictly 'informational' part (i.e. answer the question
> whether the inset was hit) and the 'inset locking' part (set the cursor
> to the place)
Agreed.
Alfredo