]> git.lyx.org Git - features.git/commitdiff
Fix remaining preview issue with math macros (#6369)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 1 Jun 2015 08:29:48 +0000 (10:29 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 1 Jun 2015 08:29:48 +0000 (10:29 +0200)
src/mathed/InsetMathHull.cpp

index ff33409f7499271a7d8bb882d2592f946030f853..ab1b5860f0bc8d1ffe4553009fa71be153148b9f 100644 (file)
@@ -643,7 +643,7 @@ void InsetMathHull::preparePreview(DocIterator const & pos,
                MacroData const * data = buffer->getMacro(*it, pos, true);
                if (data) {
                        odocstringstream mac_preamble;
-                       data->write(mac_preamble, false);
+                       data->write(mac_preamble, true);
                        docstring const mps = mac_preamble.str();
                        bool const is_new_def = prefixIs(mps, from_ascii("\\newcomm"));
                        // assure that \newcommand definitions of macros are only added once