the 'small benefits'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7256 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-07-10 11:31:54 +00:00
parent da0450e82a
commit deb40aadc6

View File

@ -1943,38 +1943,38 @@ int InsetText::cix(BufferView * bv) const
int InsetText::cy(BufferView * bv) const int InsetText::cy(BufferView * bv) const
{ {
LyXFont font; LyXFont font;
return getLyXText(bv)->cursor.y() - ascent(bv, font) + TEXT_TO_INSET_OFFSET; return text_.cursor.y() - ascent(bv, font) + TEXT_TO_INSET_OFFSET;
} }
int InsetText::ciy(BufferView * bv) const int InsetText::ciy(BufferView * bv) const
{ {
LyXFont font; LyXFont font;
return getLyXText(bv)->cursor.iy() - ascent(bv, font) + TEXT_TO_INSET_OFFSET; return text_.cursor.iy() - ascent(bv, font) + TEXT_TO_INSET_OFFSET;
} }
pos_type InsetText::cpos(BufferView * bv) const pos_type InsetText::cpos(BufferView *) const
{ {
return getLyXText(bv)->cursor.pos(); return text_.cursor.pos();
} }
ParagraphList::iterator InsetText::cpar(BufferView * bv) const ParagraphList::iterator InsetText::cpar(BufferView *) const
{ {
return getLyXText(bv)->cursor.par(); return text_.cursor.par();
} }
bool InsetText::cboundary(BufferView * bv) const bool InsetText::cboundary(BufferView *) const
{ {
return getLyXText(bv)->cursor.boundary(); return text_.cursor.boundary();
} }
RowList::iterator InsetText::crow(BufferView * bv) const RowList::iterator InsetText::crow(BufferView *) const
{ {
return getLyXText(bv)->cursorRow(); return text_.cursorRow();
} }