From 33f34e8ffb211a7679f2840dcfbdfee9a4046e11 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 3 Apr 2012 15:53:56 -0400 Subject: [PATCH] Clear local layout before reading BufferParams. Otherwise, you can't delete the local layout. --- src/Buffer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5c4f1db9b6..aebe0c96cb 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -789,6 +789,7 @@ int Buffer::readHeader(Lexer & lex) params().html_latex_end.clear(); params().html_math_img_scale = 1.0; params().output_sync_macro.erase(); + params().local_layout.clear(); for (int i = 0; i < 4; ++i) { params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i]; -- 2.39.2