]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Fix assertion when checking if change in selection
[lyx.git] / src / insets / InsetText.cpp
index 949590b19cbd1655716528cad7887d4717fcd102..107753e8ab7aaa433ae82b3cf230155b2fd8a798 100644 (file)
@@ -814,13 +814,13 @@ void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
                // Note that we do not need to call:
                //      tclass.counters().clearLastLayout()
                // since we are saving and restoring the existing counters, etc.
-               Counters const savecnt = tclass.counters();
+               Counters savecnt = tclass.counters();
                tclass.counters().reset();
                // we need float information even in note insets (#9760)
                tclass.counters().current_float(savecnt.current_float());
                tclass.counters().isSubfloat(savecnt.isSubfloat());
                buffer().updateBuffer(it2, utype);
-               tclass.counters() = savecnt;
+               tclass.counters() = move(savecnt);
        }
 }
 
@@ -1075,7 +1075,7 @@ docstring InsetText::toolTipText(docstring prefix, size_t const len) const
                        oss << "<div dir=\"rtl\">";
                writePlaintextParagraph(buffer(), *it, oss, rp, ref_printed, len);
                if ((*it).isRTL(buffer().params()))
-                       oss << "<div/>";
+                       oss << "</div>";
                if (oss.tellp() >= 0 && size_t(oss.tellp()) > len)
                        break;
        }