From 3b4d24301935be47356902efd4d6311d253c3ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Vigna?= Date: Mon, 17 Jul 2000 10:00:17 +0000 Subject: [PATCH] Small fix for MSDOS encoded .lyx-files. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@886 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/table.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e20b2c36de..55aa6783c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-17 Juergen Vigna + + * src/table.C (Read): small fix for reading tabular-code with MS-DOS + encoded .lyx-files. + 2000-07-01 Dekel Tsur * src/text.C (TransformChar): Changed to work correctly with diff --git a/src/table.C b/src/table.C index 41098e6e2b..8c61c728de 100644 --- a/src/table.C +++ b/src/table.C @@ -977,7 +977,8 @@ void LyXTable::Read(istream & is) int h = 0; string s; - getline(is, s); + while(s.empty()) + getline(is, s); if (s.length() > 8) version = atoi(s.c_str() + 8); else