mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 01:49:22 +00:00
Fix a comparison of arrays to compare *contents*
The previous code was mistakenly comparing addresses of the arrays. This issue was caught by a warning when compiling with Clang in C++20 mode, since comparing array addresses in this way is deprecated. This commit should prevent some unnecessary dispatches of LFUN_SCREEN_FONT_UPDATE. (cherry picked from commit eaebe404ae6c8305161bd5f41496f36cf6a2ab78)
This commit is contained in:
parent
36975baef7
commit
79507c98af
@ -3074,7 +3074,8 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
|| lyxrc_orig.roman_font_foundry != lyxrc_new.roman_font_foundry
|
|| lyxrc_orig.roman_font_foundry != lyxrc_new.roman_font_foundry
|
||||||
|| lyxrc_orig.sans_font_foundry != lyxrc_new.sans_font_foundry
|
|| lyxrc_orig.sans_font_foundry != lyxrc_new.sans_font_foundry
|
||||||
|| lyxrc_orig.use_scalable_fonts != lyxrc_new.use_scalable_fonts
|
|| lyxrc_orig.use_scalable_fonts != lyxrc_new.use_scalable_fonts
|
||||||
|| lyxrc_orig.font_sizes != lyxrc_new.font_sizes
|
|| !std::equal(std::begin(lyxrc_orig.font_sizes), std::end(lyxrc_orig.font_sizes),
|
||||||
|
std::begin(lyxrc_new.font_sizes))
|
||||||
|| lyxrc_orig.typewriter_font_foundry != lyxrc_new.typewriter_font_foundry
|
|| lyxrc_orig.typewriter_font_foundry != lyxrc_new.typewriter_font_foundry
|
||||||
|| lyxrc_orig.defaultZoom != lyxrc_new.defaultZoom) {
|
|| lyxrc_orig.defaultZoom != lyxrc_new.defaultZoom) {
|
||||||
dispatch(FuncRequest(LFUN_SCREEN_FONT_UPDATE));
|
dispatch(FuncRequest(LFUN_SCREEN_FONT_UPDATE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user