fix compilation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4500 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-06-28 05:49:35 +00:00
parent 02b6d38f1a
commit 79ca6fbe6d

View File

@ -44,7 +44,6 @@
#include "math_support.h"
#include "math_mathmlstream.h"
#include "textpainter.h"
#include "preview.h"
#include <fstream>
#include <boost/bind.hpp>
@ -468,7 +467,7 @@ void InsetFormula::updatePreview()
// is this old data?
if (it != theCache.end()) {
// we have already a loader, connect to it anyway
lyxerr << "### updatePreview(), old loader: " << loader_ << "\n";
//lyxerr << "### updatePreview(), old loader: " << loader_ << "\n";
loader_ = it->second.get();
loader_->statusChanged.connect
(boost::bind(&InsetFormula::statusChanged, this));
@ -482,7 +481,7 @@ void InsetFormula::updatePreview()
string file = os.str();
// the real work starts
lyxerr << "### updatePreview(), new file " << file << "\n";
//lyxerr << "### updatePreview(), new file " << file << "\n";
std::ofstream of(file.c_str());
of << "\\batchmode"
<< "\\documentclass{article}"
@ -496,8 +495,8 @@ void InsetFormula::updatePreview()
// now we are done, start actual loading we will get called back via
// InsetFormula::statusChanged() if this is finished
lyxerr << "### updatePreview(), new loader: " << loader_ << "\n";
theCache[data].reset(new grfx::Loader(file));
//lyxerr << "### updatePreview(), new loader: " << loader_ << "\n";
loader_ = theCache.find(data)->second.get();
loader_->startLoading();
loader_->statusChanged.connect(boost::bind(&InsetFormula::statusChanged, this));