+2003-10-22 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * text.C: fixed an "oops" in the "is a bit silly"
+ bug fix
2003-10-21 André Pönitz <poenitz@gmx.net>
if (point == last || chunkwidth >= width - left) {
if (pos < i) {
point = i - 1;
+ // exit on last registered breakpoint:
+ break;
}
}
- break;
+ // emergency exit:
+ if (i + 1 < last)
+ break;
}
InsetOld * in = pit->getInset(i);
if (!in || in->isChar()) {
// some insets are line separators too
if (pit->isLineSeparator(i)) {
- point = i;
+ // register breakpoint:
+ point = i;
chunkwidth = 0;
}
}
// Display-style insets should always be on a centred row
// The test on pit->size() is to catch zero-size pars, which
// would trigger the assert in Paragraph::getInset().
- inset = pit->size() ? pit->getInset(rit->pos()) : 0;
+ //inset = pit->size() ? pit->getInset(rit->pos()) : 0;
+ inset = pit->isInset(rit->pos()) ? pit->getInset(rit->pos()) : 0;
if (inset && inset->display()) {
align = LYX_ALIGN_CENTER;
}