From 4c27c921f0705be412eb8cc55b3de7b41d0bb448 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 10 Sep 2016 10:32:40 +0200 Subject: [PATCH] Minor amendment to b95262f48772 Just for consistency. --- src/frontends/qt4/GuiRef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2