Amend [1bf53d47a5b8/lyxgit]

This commit is contained in:
Juergen Spitzmueller 2021-03-14 16:48:04 +01:00
parent 1bf53d47a5
commit d5263f857e

View File

@ -2327,10 +2327,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
case LFUN_UI_TOGGLE:
if (cmd.argument() == "zoomslider") {
enable = doc_buffer;
// Test to avoid crash if called before zoom_slider_ is initialized
// FIXME: can probably be done better
if (enable)
flag.setOnOff(zoom_slider_->isVisible());
flag.setOnOff(zoom_slider_ ? zoom_slider_->isVisible() : false);
} else
flag.setOnOff(isFullScreen());
break;