]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
merge CursorItem and MathPos
[features.git] / src / insets / insettext.C
index ac2a3a2849c6d7826e7847b329e912aa2007da97..c5677f9ab6b2a08a92a842564804857e64b4813e 100644 (file)
@@ -305,8 +305,8 @@ void InsetText::edit(BufferView * bv, int x, int y)
 DispatchResult InsetText::priv_dispatch(FuncRequest const & cmd,
        idx_type &, pos_type &)
 {
-       lyxerr << "InsetText::priv_dispatch (begin), act: "
-              << cmd.action << " " << endl;
+       //lyxerr << "InsetText::priv_dispatch (begin), act: "
+       //      << cmd.action << " " << endl;
 
        BufferView * bv = cmd.view();
        setViewCache(bv);
@@ -335,7 +335,7 @@ DispatchResult InsetText::priv_dispatch(FuncRequest const & cmd,
                text_.setFont(font, false);
        }
 
-       lyxerr << "InsetText::priv_dispatch (end)" << endl;
+       //lyxerr << "InsetText::priv_dispatch (end)" << endl;
        return result;
 }
 
@@ -388,8 +388,8 @@ void InsetText::validate(LaTeXFeatures & features) const
 
 void InsetText::getCursorPos(int & x, int & y) const
 {
-       x = text_.cursor.x() + TEXT_TO_INSET_OFFSET;
-       y = text_.cursor.y() - dim_.asc + TEXT_TO_INSET_OFFSET;
+       x = text_.cursorX() + TEXT_TO_INSET_OFFSET;
+       y = text_.cursorY() - dim_.asc + TEXT_TO_INSET_OFFSET;
 }