commit 976a166783046e6eb15a791e852c720abdad5ce1
Author: Pavel Sanda <[email protected]>
Date: Tue May 20 20:12:44 2025 +0200
Add comment
---
src/frontends/qt/GuiView.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 53cf518e68..9104dfa6c1 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -1024,6 +1024,9 @@ void GuiView::saveUISettings() const
void GuiView::setCurrentZoom(const int v)
{
+ // Note that this is essentially recursive call:
setCurrentZoom->currentZoomChanged->
+ // setValue->zoomValueChanged->zoomSliderMoved->dispatch
LFUN_ZOOM->setCurrentZoom
+ // which exits only due to the courtesy of Qt not allowing recursive EMIT.
Q_EMIT currentZoomChanged(v);
lyxrc.currentZoom = v;
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), v)));
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs