mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +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)
|
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_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user