mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* 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:
parent
32cd0ee6f9
commit
b16aafd88e
@ -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_) {
|
||||
|
Loading…
Reference in New Issue
Block a user