Alfredos list<> -> vector<> for RowList

Show RightAddress again


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7975 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-10-24 08:33:52 +00:00
parent 70f983b97f
commit 934aeb7383
2 changed files with 4 additions and 4 deletions

View File

@ -12,10 +12,10 @@
#ifndef ROW_LIST_FWD_H
#define ROW_LIST_FWD_H
#include <list>
#include <vector>
class Row;
typedef std::list<Row> RowList;
typedef std::vector<Row> RowList;
#endif

View File

@ -364,11 +364,11 @@ int LyXText::leftMargin(ParagraphList::iterator pit, Row const & row) const
// row in this paragraph.
RowList::iterator rit = pit->rows.begin();
RowList::iterator end = pit->rows.end();
int minfill = rit->fill();
#warning This is wrong.
int minfill = workWidth() / 2;
for ( ; rit != end; ++rit)
if (rit->fill() < minfill)
minfill = rit->fill();
x += font_metrics::signedWidth(layout->leftmargin,
tclass.defaultfont());
x += minfill;