* BufferView::Pimpl::update:

- slight speedup by checking if debugging before creating
	  the debug output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14333 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2006-07-04 00:30:34 +00:00
parent 32cd0ee6f9
commit b16aafd88e

View File

@ -689,12 +689,15 @@ ViewMetricsInfo const & BufferView::Pimpl::viewMetricsInfo()
void BufferView::Pimpl::update(Update::flags flags) void BufferView::Pimpl::update(Update::flags flags)
{ {
lyxerr[Debug::DEBUG] // This is close to a hot-path.
<< BOOST_CURRENT_FUNCTION if (lyxerr.debugging(Debug::DEBUG)) {
<< "[fitcursor = " << (flags & Update::FitCursor) lyxerr[Debug::DEBUG]
<< ", forceupdate = " << (flags & Update::Force) << BOOST_CURRENT_FUNCTION
<< ", singlepar = " << (flags & Update::SinglePar) << "[fitcursor = " << (flags & Update::FitCursor)
<< "] buffer: " << buffer_ << endl; << ", forceupdate = " << (flags & Update::Force)
<< ", singlepar = " << (flags & Update::SinglePar)
<< "] buffer: " << buffer_ << endl;
}
// Check needed to survive LyX startup // Check needed to survive LyX startup
if (buffer_) { if (buffer_) {