From 926befadd895215b4184e2329c49e123515173a6 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sun, 23 Dec 2007 01:27:04 +0000 Subject: [PATCH] * tabs are evil git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22273 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacroTemplate.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 2cc88092ea..cb661f23cd 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -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(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(it.nextInset()); if (arg->number() >= from + 1) arg->setNumber(arg->number() + by);