mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* src/mathed/math_scriptinset.C
(MathScriptInset::hasLimits): remove annoying debug message * src/mathed/math_nestinset.C (MathNestInset::script): ditto * src/CutAndPaste.C (copySelection): ditto git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14583 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
54d193a0a9
commit
5e0c737a3b
@ -589,7 +589,7 @@ void copySelection(LCursor & cur)
|
||||
}
|
||||
|
||||
if (cur.inMathed()) {
|
||||
lyxerr << "copySelection in mathed" << endl;
|
||||
//lyxerr << "copySelection in mathed" << endl;
|
||||
ParagraphList pars;
|
||||
pars.push_back(Paragraph());
|
||||
BufferParams const & bp = cur.buffer().params();
|
||||
|
@ -1338,7 +1338,7 @@ bool MathNestInset::script(LCursor & cur, bool up, string const &
|
||||
save_selection)
|
||||
{
|
||||
// Hack to get \^ and \_ working
|
||||
lyxerr << "handling script: up: " << up << endl;
|
||||
//lyxerr << "handling script: up: " << up << endl;
|
||||
if (cur.inMacroMode() && cur.macroName() == "\\") {
|
||||
if (up)
|
||||
cur.niceInsert(createMathInset("mathcircumflex"));
|
||||
@ -1351,7 +1351,7 @@ bool MathNestInset::script(LCursor & cur, bool up, string const &
|
||||
if (asScriptInset() && cur.idx() == 0) {
|
||||
// we are in a nucleus of a script inset, move to _our_ script
|
||||
MathScriptInset * inset = asScriptInset();
|
||||
lyxerr << " going to cell " << inset->idxOfScript(up) << endl;
|
||||
//lyxerr << " going to cell " << inset->idxOfScript(up) << endl;
|
||||
inset->ensure(up);
|
||||
cur.idx() = inset->idxOfScript(up);
|
||||
cur.pos() = 0;
|
||||
|
@ -308,12 +308,9 @@ bool MathScriptInset::hasLimits() const
|
||||
|
||||
void MathScriptInset::removeScript(bool up)
|
||||
{
|
||||
lyxerr << "MathScriptInset::removeScript: 1 up: " << up << endl;
|
||||
if (nargs() == 2) {
|
||||
lyxerr << "MathScriptInset::removeScript: a up: " << up << endl;
|
||||
if (up == cell_1_is_up_)
|
||||
cells_.pop_back();
|
||||
lyxerr << "MathScriptInset::removeScript: b up: " << up << endl;
|
||||
} else if (nargs() == 3) {
|
||||
if (up == true) {
|
||||
swap(cells_[1], cells_[2]);
|
||||
|
Loading…
Reference in New Issue
Block a user