BufferView::Pimpl::Pimpl(BufferView * b, LyXView * o,
int xpos, int ypos, int width, int height)
BufferView::Pimpl::Pimpl(BufferView * b, LyXView * o,
int xpos, int ypos, int width, int height)
LyXCursor cursor;
text->SetCursorFromCoordinates(bv_, cursor, x, y_tmp);
LyXCursor cursor;
text->SetCursorFromCoordinates(bv_, cursor, x, y_tmp);
if (x > start_x && x < end_x
&& y_tmp > cursor.y() - tmpinset->ascent(bv_, font)
if (x > start_x && x < end_x
&& y_tmp > cursor.y() - tmpinset->ascent(bv_, font)
text->SetCursor(bv_, cursor.par(),cursor.pos(),true);
x = x - start_x;
// The origin of an inset is on the baseline
text->SetCursor(bv_, cursor.par(),cursor.pos(),true);
x = x - start_x;
// The origin of an inset is on the baseline
} else {
// if we don't have an argument there was something
// strange going on so we just tell this to someone!
} else {
// if we don't have an argument there was something
// strange going on so we just tell this to someone!