compile fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8622 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-04-07 16:57:57 +00:00
parent 75ba515b18
commit 7ae9a86d4d
2 changed files with 8 additions and 4 deletions

View File

@ -1149,6 +1149,7 @@ InsetBase * LyXText::editXY(LCursor & cur, int x, int y)
// try to descend into nested insets
InsetBase * inset = checkInsetHit(x, y);
lyxerr << "inset " << inset << " hit at x: " << x << " y: " << y << endl;
if (!inset)
return 0;
@ -1342,7 +1343,8 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
#endif
// correct all cursor parts
fixCursorAfterDelete(cur.top(), old.top());
fixCursorAfterDelete(cur.anchor(), old.top());
#warning DEPM, look here
//fixCursorAfterDelete(cur.anchor(), old.top());
return false;
}
}
@ -1384,8 +1386,9 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
// such events. Maybe even signal/slot?
if (cur.par() > old.par())
--cur.par();
if (cur.anchor().par() > old.par())
--cur.anchor().par();
#warning DEPM, look here
// if (cur.anchor().par() > old.par())
// --cur.anchor().par();
if (selection_position_was_oldcursor_position) {
// correct selection

View File

@ -193,7 +193,8 @@ InsetBase * LyXText::checkInsetHit(int x, int y)
bv()->top_y() - yo_ + bv()->workHeight(),
pit, end);
//lyxerr << "checkInsetHit: x: " << x << " y: " << y << endl;
lyxerr << "checkInsetHit: x: " << x << " y: " << y << endl;
lyxerr << " pit: " << pit << " end: " << end << endl;
for ( ; pit != end; ++pit) {
InsetList::iterator iit = pars_[pit].insetlist.begin();
InsetList::iterator iend = pars_[pit].insetlist.end();