]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.cpp
Limit the nopassthurchars case in beamer to URL
[lyx.git] / src / DocIterator.cpp
index 94b7792b9afa849d9b9cf8868d21414f4808f934..ace4498a56e91d6f4e8af525f77c567ec74544b0 100644 (file)
@@ -495,8 +495,6 @@ void DocIterator::backwardPosIgnoreCollapsed()
 }
 
 
-#if 0
-// works, but currently not needed
 void DocIterator::backwardInset()
 {
        backwardPos();
@@ -514,7 +512,6 @@ void DocIterator::backwardInset()
                backwardPos();
        }
 }
-#endif
 
 
 bool DocIterator::hasPart(DocIterator const & it) const
@@ -549,7 +546,7 @@ void DocIterator::updateInsets(Inset * inset)
        size_t const n = slices_.size();
        slices_.resize(0);
        for (size_t i = 0 ; i < n; ++i) {
-               if (dit[i].empty() && prevMath().lyxCode() == MATH_SCRIPT_CODE)
+               if (dit[i].empty() && pos() > 0 && prevMath().lyxCode() == MATH_SCRIPT_CODE)
                        // Workaround: With empty optional argument and a trailing script,
                        // we have empty slices in math macro args (#11676)
                        // FIXME: Find real cause!