]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
39 to go
[lyx.git] / src / DocIterator.cpp
index af36b644573fdbbf3fd0151cac61f5d0eec0c3bd..07e0d6f5e0d012a7e24dfeb18400db2c3cae2789 100644 (file)
@@ -78,7 +78,7 @@ Inset * DocIterator::prevInset() const
        BOOST_ASSERT(!empty());
        if (pos() == 0)
                return 0;
-       if (inMathed())
+       if (inMathed()) {
                if (cell().empty())
                        // FIXME: this should not happen but it does.
                        // See bug 3189
@@ -86,6 +86,7 @@ Inset * DocIterator::prevInset() const
                        return 0;
                else
                        return prevAtom().nucleus();
+       }
        return paragraph().isInset(pos() - 1) ? paragraph().getInset(pos() - 1) : 0;
 }