Compilation fix, again... sorry.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16456 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-01 10:44:52 +00:00
parent c87fa1927b
commit 9939a42b80
2 changed files with 3 additions and 5 deletions

View File

@ -87,17 +87,17 @@ private:
/// sets row.width to the minimum space a row needs on the screen in pixel
void setRowWidth(int right_margin, pit_type const pit, Row & row) const;
// Temporary public:
public:
/// Calculate and set the height of the row
void setHeightOfRow(pit_type, Row & row);
private:
// Temporary public:
public:
/// returns the column near the specified x-coordinate of the row.
/// x is an absolute screen coord, it is set to the real beginning
/// of this column.
pos_type getColumnNearX(pit_type pit, Row const & row, int & x,
bool & boundary) const;
private:
/// The BufferView owner.
BufferView * bv_;

View File

@ -857,8 +857,6 @@ InsetBase * LyXText::editXY(LCursor & cur, int x, int y)
bool bound = false;
TextMetrics const & tm = cur.bv().textMetrics(this);
ParagraphMetrics const & pm = tm.parMetrics(pit);
int right_margin = tm.rightMargin(pm);
int xx = x; // is modified by getColumnNearX
pos_type const pos = row.pos()
+ tm.getColumnNearX(pit, row, xx, bound);