]> git.lyx.org Git - features.git/commitdiff
* tabs are evil
authorStefan Schimanski <sts@lyx.org>
Sun, 23 Dec 2007 01:27:04 +0000 (01:27 +0000)
committerStefan Schimanski <sts@lyx.org>
Sun, 23 Dec 2007 01:27:04 +0000 (01:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22273 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacroTemplate.cpp

index 2cc88092ea28206e05a682eb3705984c3e6c7ed2..cb661f23cd1d3674dd8d8e9ce00f652a0b797158 100644 (file)
@@ -561,15 +561,15 @@ bool MathMacroTemplate::notifyCursorLeaves(Cursor & cur)
 void MathMacroTemplate::removeArguments(Cursor & cur, int from, int to) {
        for (DocIterator it = doc_iterator_begin(*this); it; it.forwardChar()) {
                if (!it.nextInset())
-                                               continue;
+                       continue;
                if (it.nextInset()->lyxCode() != MATHMACROARG_CODE)
-                                               continue;
+                       continue;
                MathMacroArgument * arg = static_cast<MathMacroArgument*>(it.nextInset());
                int n = arg->number() - 1;
                if (from <= n && n <= to) {
                        int cellSlice = cur.find(it.cell());
                        if (cellSlice != -1 && cur[cellSlice].pos() > it.pos())
-                                       --cur[cellSlice].pos();
+                               --cur[cellSlice].pos();
 
                        it.cell().erase(it.pos());
                }
@@ -582,9 +582,9 @@ void MathMacroTemplate::removeArguments(Cursor & cur, int from, int to) {
 void MathMacroTemplate::shiftArguments(size_t from, int by) {
        for (DocIterator it = doc_iterator_begin(*this); it; it.forwardChar()) {
                if (!it.nextInset())
-                                               continue;
+                       continue;
                if (it.nextInset()->lyxCode() != MATHMACROARG_CODE)
-                                               continue;
+                       continue;
                MathMacroArgument * arg = static_cast<MathMacroArgument*>(it.nextInset());
                if (arg->number() >= from + 1)
                        arg->setNumber(arg->number() + by);