]> git.lyx.org Git - features.git/commitdiff
remove obsolete workaround
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Oct 2008 13:42:09 +0000 (13:42 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Oct 2008 13:42:09 +0000 (13:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27187 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/PreviewLoader.cpp

index 5e24fec1bc0e9d87ee069961a57bd6a3bdfe7443..72a420e371a846f630b5d91b97a37e9635ece6d0 100644 (file)
@@ -678,8 +678,6 @@ void PreviewLoader::Impl::finishedGenerating(pid_t pid, int retval)
 
 void PreviewLoader::Impl::dumpPreamble(odocstream & os) const
 {
-       // Why on earth is Buffer::makeLaTeXFile a non-const method?
-       Buffer & tmp = const_cast<Buffer &>(buffer_);
        // Dump the preamble only.
        // We don't need an encoding for runparams since it is not used by
        // the preamble.
@@ -688,7 +686,7 @@ void PreviewLoader::Impl::dumpPreamble(odocstream & os) const
        runparams.nice = true;
        runparams.moving_arg = true;
        runparams.free_spacing = true;
-       tmp.writeLaTeXSource(os, buffer_.filePath(), runparams, true, false);
+       buffer_.writeLaTeXSource(os, buffer_.filePath(), runparams, true, false);
 
        // FIXME! This is a HACK! The proper fix is to control the 'true'
        // passed to WriteStream below: