mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
revert faulty changes in last revision...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15439 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4d3fbc113f
commit
d589434ce3
27
src/text2.C
27
src/text2.C
@ -980,33 +980,10 @@ InsetBase * LyXText::editXY(LCursor & cur, int x, int y)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int i=0;
|
||||
InsetBase * inset2 = pars_[pit].getInset(pos - 1);
|
||||
InsetBase * inset3 = pars_[pit].getInset(pos);
|
||||
if (inset != pars_[pit].getInset(pos - 1))
|
||||
{
|
||||
i++;
|
||||
std::cout << "pit " << pit
|
||||
<< " pos -1 " << pos - 1
|
||||
<< "\ninset " << inset
|
||||
<< "\ninset2 " << inset2
|
||||
<< endl;
|
||||
}
|
||||
|
||||
if (inset != pars_[pit].getInset(pos))
|
||||
{
|
||||
i++;
|
||||
std::cout << "pit " << pit
|
||||
<< " pos " << pos
|
||||
<< "\ninset " << inset
|
||||
<< "\ninset3 " << inset3
|
||||
<< endl;
|
||||
}
|
||||
if (i == 2)
|
||||
std::cout << endl;
|
||||
|
||||
// This should be just before or just behind the
|
||||
// cursor position set above.
|
||||
InsetBase * inset2 = pars_[pit].getInset(pos - 1);
|
||||
InsetBase * inset3 = pars_[pit].getInset(pos);
|
||||
|
||||
BOOST_ASSERT((pos != 0 && inset == inset2)
|
||||
|| inset == inset3);
|
||||
|
Loading…
Reference in New Issue
Block a user