]> git.lyx.org Git - lyx.git/blobdiff - src/texstream.cpp
Improve fractions bar
[lyx.git] / src / texstream.cpp
index be1168a7e815e5536bdda3f5b083830060b6d660..5b0e92759173f211ec2afeebc2d17d5f72b4ea37 100644 (file)
@@ -78,9 +78,11 @@ size_t otexstringstream::length()
 
 TexString otexstringstream::release()
 {
-       TexString ts{ods_.str(), TexRow()};
-       swap(ts.texrow, texrow());
-       ods_ = odocstringstream();
+       TexString ts(ods_.str(), move(texrow()));
+       // reset this
+       texrow() = TexRow();
+       ods_.clear();
+       ods_.str(docstring());
        return ts;
 }