+ 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]);
+ cell_1_is_up_ = false;
+ } else {
+ cell_1_is_up_ = true;
+ }
+ cells_.pop_back();
+ }
+ lyxerr << "MathScriptInset::removeScript: 2 up: " << up << endl;