[LyX/master] Set zoom value after menu

Juergen Spitzmueller spitz at lyx.org
Fri Mar 12 15:26:01 UTC 2021


commit 71268e859df6c042a4c9a9e4819a132396ea5525
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Mar 12 16:30:50 2021 +0100

    Set zoom value after menu
    
    Fixes initial size with styles that show a menu indicator
---
 src/frontends/qt/GuiView.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 7dd05f0..39d5c4d 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -673,7 +673,6 @@ GuiView::GuiView(int id)
 	connect(zoom_out_, SIGNAL(clicked()), this, SLOT(zoomOutPressed()));
 
 	zoom_value_ = new QToolButton(statusBar());
-	zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
 	zoom_value_->setToolButtonStyle(Qt::ToolButtonTextOnly);
 	zoom_value_->setAutoRaise(true);
 	zoom_value_->setPopupMode(QToolButton::InstantPopup);
@@ -696,6 +695,7 @@ GuiView::GuiView(int id)
 	zoom_value_->addAction(act_zoom_in_);
 	zoom_value_->addAction(act_zoom_out_);
 	zoom_value_->addAction(act_zoom_show_);
+	zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
 	enableZoomOptions();
 	connect(act_zoom_default_, SIGNAL(triggered()),
 			this, SLOT(resetDefaultZoom()));


More information about the lyx-cvs mailing list