* 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)
{
lyxerr[Debug::DEBUG]
<< BOOST_CURRENT_FUNCTION
<< "[fitcursor = " << (flags & Update::FitCursor)
<< ", forceupdate = " << (flags & Update::Force)
<< ", singlepar = " << (flags & Update::SinglePar)
<< "] buffer: " << buffer_ << endl;
// This is close to a hot-path.
if (lyxerr.debugging(Debug::DEBUG)) {
lyxerr[Debug::DEBUG]
<< BOOST_CURRENT_FUNCTION
<< "[fitcursor = " << (flags & Update::FitCursor)
<< ", forceupdate = " << (flags & Update::Force)
<< ", singlepar = " << (flags & Update::SinglePar)
<< "] buffer: " << buffer_ << endl;
}
// Check needed to survive LyX startup
if (buffer_) {