From: Juergen Spitzmueller Date: Sat, 10 Sep 2016 08:32:40 +0000 (+0200) Subject: Minor amendment to b95262f48772 X-Git-Tag: 2.3.0alpha1~1049 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4c27c921f0705be412eb8cc55b3de7b41d0bb448;p=lyx.git Minor amendment to b95262f48772 Just for consistency. --- diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index 0d213874e3..7a1335affa 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -270,7 +270,7 @@ void GuiRef::updateContents() int const thebuffer = theBufferList().bufferNum(buffer().fileName()); // restore the buffer combo setting for new insets - if (params_["reference"].empty() && restored_buffer_ != -1 + if (new_inset && restored_buffer_ != -1 && restored_buffer_ < bufferCO->count() && thebuffer == active_buffer_) bufferCO->setCurrentIndex(restored_buffer_); else {