Georg Baum wrote:
Helge Hafting wrote:
The output is now correct, but instead we sort of have the
exact opposite problem:
1. Select _more_ than the table and apply a font change. Everything
is correct, on screen and in output.
2. Select a few cells inside the changed table, and change the font to
something different again. Note that there is now no font change
on the screen, but the output (view dvi) is correct.
I can't do this:
Assertion triggered in void <unnamed>::recordUndo(Undo::undo_kind, LCursor&,
int, int, limited_stack<Undo>&) by failing check "first_pit <=
cur.lastpit()" in file ../../src/undo.C:125
(both with and without the patch)
Can you give a precise recipe? I suspect that this problem is also present
without my patch. Is that true?
My exact testcase (lyx qt, todays cvs):
1. start lyx
2. type "abc", insert table, type "abc" after the table, insert another
table, type "abc" after it. (This is all one big paragraph)
3. In each table, type "abc" into the two first cells.
4. Mark everything
5. change the selection to bold, using the menu.
6. check wether the screen is correct.
7. Check wether the DVI is correct.
8. Mark the two first cells in the first table
9. Apply a font change to "sans serif" size "large"
10. Check that this is correct on screen.
11. Check the DVI also
Results without the patch:
6. everything bold on screen as it should
7. Stuff inside tables is not bold - error
10. screen font changed to sans serif large bold as expected
11. In the DVI, font changed to sans serif large, still no bold.
I.e. partial table font change works - whole table font change doesn't.
Results with the patch:
6. everything bold on screen as it should
7. stuff inside tables bold too - improvement!
10. screen correct - sans serif large bold
11. In the dvi, the font changed to sans serif large bold too.
The patch applied to todays cvs with some offsets - and it seems
that it solves the problems too.
Helge Hafting