initialize fval

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2544 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-08-18 10:54:33 +00:00
parent 1148c5d181
commit d47c62c16c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-08-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
* Spacing.C (set): initialize fval
2001-08-15 Dekel Tsur <dekelts@tau.ac.il>
* lyxlex_pimpl.C (next): Treat \ as normal char if not followed by

View File

@ -58,7 +58,7 @@ void Spacing::set(Spacing::Space sp, float val)
void Spacing::set(Spacing::Space sp, string const & val)
{
float fval;
float fval = 0.0;
istringstream istr(val.c_str());
istr >> fval;
set(sp, fval);