diff --git a/src/TextMetrics.h b/src/TextMetrics.h index 1978cc5a27..4af380ebe5 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -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_; diff --git a/src/text2.C b/src/text2.C index bf34b25e1f..e47be66fd6 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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);