]> git.lyx.org Git - features.git/commitdiff
* insettext.[Ch] (cx, cy): remove
authorAndré Pönitz <poenitz@gmx.net>
Mon, 17 Nov 2003 12:39:24 +0000 (12:39 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 17 Nov 2003 12:39:24 +0000 (12:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8091 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettext.C
src/insets/insettext.h

index 5d42c9bdf94a0e675d78410556bef3450b4c452a..943e1a408e43c39b211f738b85b3dea0cb4d71ce 100644 (file)
@@ -1,4 +1,8 @@
 
+2003-11-17  André Pönitz  <poenitz@gmx.net>
+
+       * insettext.[Ch] (cx, cy): remove
+
 2003-11-13  André Pönitz  <poenitz@gmx.net>
 
        * inset.h: 
index ddf75775ab12e4b0108ca8105332df7082ce15e0..42416b8e9f65ac0aba13487d09fb131b061c8f8b 100644 (file)
@@ -688,8 +688,8 @@ void InsetText::validate(LaTeXFeatures & features) const
 
 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;
 }
 
 
@@ -906,18 +906,6 @@ void InsetText::setFrameColor(LColor_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;
-}
-
-
 pos_type InsetText::cpos() const
 {
        return text_.cursor.pos();
index 995f47084f66527a72e40319aa094bc2ddee5ae7..2a355a9279a152ab36230a4736c0dffe6d7a95c5 100644 (file)
@@ -213,10 +213,6 @@ private:
        ///
        void removeNewlines();
        ///
-       int cx() const;
-       ///
-       int cy() const;
-       ///
        lyx::pos_type cpos() const;
        ///
        ParagraphList::iterator cpar() const;