This patch removes some annoying debug messages reported on lyx-users.
It goes in now in trunk and branch.
JMarc
Index: src/mathed/math_scriptinset.C
===================================================================
--- src/mathed/math_scriptinset.C (revision 14576)
+++ src/mathed/math_scriptinset.C (working copy)
@@ -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]);
Index: src/mathed/math_nestinset.C
===================================================================
--- src/mathed/math_nestinset.C (revision 14576)
+++ src/mathed/math_nestinset.C (working copy)
@@ -1338,7 +1338,7 @@ bool MathNestInset::script(LCursor & cur
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
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;
Index: src/CutAndPaste.C
===================================================================
--- src/CutAndPaste.C (revision 14576)
+++ src/CutAndPaste.C (working copy)
@@ -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();