small stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6918 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-05-02 07:43:23 +00:00
parent 42320e7be3
commit ef3b4f2936
3 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,8 @@
2003-05-02 André Pönitz <poenitz@gmx.net>
* math_arrayinset.[Ch]: add markers
2003-04-30 André Pönitz <poenitz@gmx.net>
* math_gridinset.C: fix transition to new Col/Row/CellInfo scheme

View File

@ -3,7 +3,7 @@
struct ColInfo
{
ColInfo() : rightline(0), leftline(false) {}
ColInfo() : align('c'), rightline(0), leftline(false) {}
char align; // column alignment
string width; // column width
int rightline; // a line on the right?

View File

@ -151,7 +151,8 @@ void MathGridInset::halign(string const & hh)
for (string::const_iterator it = hh.begin(); it != hh.end(); ++it) {
if (col == ncols())
addCol(ncols() - 1);
char c = *it;
char const c = *it;
lyxerr << "handle column separator: '" << c << "'\n";
if (c == '|') {
colinfo_[col].lines_++;
} else if (c == 'c' || c == 'l' || c == 'r') {
@ -163,13 +164,11 @@ void MathGridInset::halign(string const & hh)
}
}
/*
col_type n = hh.size();
if (n > ncols())
n = ncols();
if (n >= ncols())
n = ncols() - 1;
for (col_type col = 0; col < n; ++col)
colinfo_[col].align_ = hh[col];
*/
colinfo_[col].align = hh[col];
}