mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
A little const'ness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27167 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c7b7331315
commit
4fb3e609d0
@ -231,13 +231,13 @@ void GuiRef::updateContents()
|
||||
bufferCO->addItem(toqstr(makeDisplayPath(it->absFilename())));
|
||||
}
|
||||
|
||||
int thebuffer = theBufferList().bufferNum(buffer().fileName());
|
||||
int const thebuffer = theBufferList().bufferNum(buffer().fileName());
|
||||
// restore the buffer combo setting for new insets
|
||||
if (params_["reference"].empty() && restored_buffer_ != -1
|
||||
&& restored_buffer_ < bufferCO->count() && thebuffer == active_buffer_)
|
||||
bufferCO->setCurrentIndex(restored_buffer_);
|
||||
else {
|
||||
int num = theBufferList().bufferNum(buffer().fileName());
|
||||
int const num = theBufferList().bufferNum(buffer().fileName());
|
||||
bufferCO->setCurrentIndex(num);
|
||||
if (thebuffer != active_buffer_)
|
||||
restored_buffer_ = num;
|
||||
|
Loading…
x
Reference in New Issue
Block a user