+2000-03-03 Juergen Vigna <jug@sad.it>
+
+ * src/insets/insetert.C (InsetERT): Now ERT-insets break row
+ automatically with the width of the LyX-Window
+
+ * src/insets/insettext.C (computeTextRows): fixed update bug in
+ displaying text-insets (scrollvalues where not initialized!)
+
2000-03-02 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/mathed/math_utils.C (MathedLookupBOP): using only res->id ==
interline_space = 1;
no_selection = false;
init_inset = true;
+ maxAscent = maxDescent = insetWidth = 0;
+ autoBreakRows = false;
}
interline_space = 1;
no_selection = false;
init_inset = true;
+ maxAscent = maxDescent = insetWidth = 0;
+ autoBreakRows = false;
}
row.pos = 0;
row.baseline = 0;
rows.push_back(row);
- if (maxWidth < 0) {
+ if (!autoBreakRows) {
for(p = 0; p < par->Last(); ++p) {
insetWidth += SingleWidth(pain, par, p);
SingleHeight(pain, par, p, asc, desc);
rows.push_back(row);
return;
}
+
bool is_first_word_in_row = true;
int cw,
lastWordWidth = 0;
+ maxWidth = buffer->getUser()->paperWidth();
for(p = 0; p < par->Last(); ++p) {
cw = SingleWidth(pain, par, p);
width += cw;