mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Reset stream properties after changing them
Fixes coverity issue 23468.
This commit is contained in:
parent
db1979f398
commit
24737eeceb
@ -1901,6 +1901,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
||||
!= system_lyxrc.font_sizes[FONT_SIZE_HUGE] ||
|
||||
font_sizes[FONT_SIZE_HUGER]
|
||||
!= system_lyxrc.font_sizes[FONT_SIZE_HUGER]) {
|
||||
streamsize old_prec = os.precision();
|
||||
os.setf(ios::fixed);
|
||||
os.precision(2);
|
||||
os << "\\screen_font_sizes"
|
||||
@ -1915,6 +1916,8 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
||||
<< ' ' << font_sizes[FONT_SIZE_HUGE]
|
||||
<< ' ' << font_sizes[FONT_SIZE_HUGER]
|
||||
<< '\n';
|
||||
os.precision(old_prec);
|
||||
os.unsetf(ios::fixed);
|
||||
}
|
||||
if (tag != RC_LAST)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user