X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftabular-old.C;h=796f47b650412b96b13e88aac336cf29d090d764;hb=29f01faa17495e3d80c08f234c8f049c7d699ac1;hp=1ab944317f1bb06b43bec7bffbe08f3978431311;hpb=1070702ea46b36ec5016bad2fe97649cec5e6148;p=lyx.git diff --git a/src/tabular-old.C b/src/tabular-old.C index 1ab944317f..796f47b650 100644 --- a/src/tabular-old.C +++ b/src/tabular-old.C @@ -1,22 +1,25 @@ /* This file is part of - * ====================================================== - * + * ====================================================== + * * LyX, The Document Processor - * + * * Copyright 2000-2001 The LyX Team. * * @author: Jürgen Vigna * - * ====================================================== + * ====================================================== */ #include #include "tabular.h" +#include "buffer.h" #include "debug.h" + #include "support/lstrings.h" #include "support/textutils.h" +using std::abs; using std::istream; using std::getline; using std::endl; @@ -132,7 +135,7 @@ bool getTokenValue(string const & str, const char * token, LyXLength & len) if (!getTokenValue(str, token, tmp)) return false; return isValidLength(tmp, &len); -} +} inline @@ -159,7 +162,7 @@ void LyXTabular::ReadOld(Buffer const * buf, istream & is, return; if (!getTokenValue(line, "columns", columns_arg)) return; - Init(rows_arg, columns_arg); + Init(buf->params, rows_arg, columns_arg); l_getline(is, line); if (!prefixIs(line, " got" <<