mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +00:00
Amend 168d3557
I forgot to append an underscore for the private data member.
This commit is contained in:
parent
168d355721
commit
5fd21db9d4
@ -2034,9 +2034,9 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
bool const neg_zoom =
|
bool const neg_zoom =
|
||||||
convert<int>(cmd.argument()) < 0 ||
|
convert<int>(cmd.argument()) < 0 ||
|
||||||
(cmd.action() == LFUN_BUFFER_ZOOM_OUT && cmd.argument().empty());
|
(cmd.action() == LFUN_BUFFER_ZOOM_OUT && cmd.argument().empty());
|
||||||
if (lyxrc.zoom <= zoom_min && neg_zoom) {
|
if (lyxrc.zoom <= zoom_min_ && neg_zoom) {
|
||||||
docstring const msg =
|
docstring const msg =
|
||||||
bformat(_("Zoom level cannot be less than %1$d%."), zoom_min);
|
bformat(_("Zoom level cannot be less than %1$d%."), zoom_min_);
|
||||||
flag.message(msg);
|
flag.message(msg);
|
||||||
enable = false;
|
enable = false;
|
||||||
} else
|
} else
|
||||||
@ -3981,8 +3981,8 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
} else
|
} else
|
||||||
zoom += convert<int>(cmd.argument());
|
zoom += convert<int>(cmd.argument());
|
||||||
|
|
||||||
if (zoom < static_cast<int>(zoom_min))
|
if (zoom < static_cast<int>(zoom_min_))
|
||||||
zoom = zoom_min;
|
zoom = zoom_min_;
|
||||||
lyxrc.zoom = zoom;
|
lyxrc.zoom = zoom;
|
||||||
|
|
||||||
dr.setMessage(bformat(_("Zoom level is now %1$d%"), lyxrc.zoom));
|
dr.setMessage(bformat(_("Zoom level is now %1$d%"), lyxrc.zoom));
|
||||||
|
@ -462,7 +462,7 @@ private:
|
|||||||
QLabel * version_control_;
|
QLabel * version_control_;
|
||||||
|
|
||||||
/// Minimum zoom percentage
|
/// Minimum zoom percentage
|
||||||
unsigned int const zoom_min = 10;
|
unsigned int const zoom_min_ = 10;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user