not really needed. What's the current state of coordinate handling btw?
Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
Index: insets/insettext.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.C,v retrieving revision 1.541 diff -u -p -r1.541 insettext.C --- insets/insettext.C 13 Nov 2003 13:43:44 -0000 1.541 +++ insets/insettext.C 17 Nov 2003 12:32:52 -0000 @@ -688,8 +688,8 @@ void InsetText::validate(LaTeXFeatures & void InsetText::getCursorPos(BufferView *, int & x, int & y) const { - x = cx() - xo_; - y = cy(); + x = text_.cursor.x() + TEXT_TO_INSET_OFFSET; + y = text_.cursor.y() - dim_.asc + TEXT_TO_INSET_OFFSET; } @@ -903,18 +903,6 @@ LColor_color InsetText::frameColor() con void InsetText::setFrameColor(LColor_color col) { frame_color_ = col; -} - - -int InsetText::cx() const -{ - return text_.cursor.x() + xo_ + TEXT_TO_INSET_OFFSET; -} - - -int InsetText::cy() const -{ - return text_.cursor.y() - dim_.asc + TEXT_TO_INSET_OFFSET; } Index: insets/insettext.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insettext.h,v retrieving revision 1.229 diff -u -p -r1.229 insettext.h --- insets/insettext.h 13 Nov 2003 13:43:44 -0000 1.229 +++ insets/insettext.h 17 Nov 2003 12:32:52 -0000 @@ -213,10 +213,6 @@ private: /// void removeNewlines(); /// - int cx() const; - /// - int cy() const; - /// lyx::pos_type cpos() const; /// ParagraphList::iterator cpar() const;