mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Amend [1bf53d47a5b8/lyxgit]
This commit is contained in:
parent
1bf53d47a5
commit
d5263f857e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user