If you load a document with a table of content, and scroll down to it, then it's shown as white text on blue background the first time. If/when the ToC is repainted, it is shown correctly. Reproducible: Always Steps to Reproduce: For example: 1. Go to [calligra-top-dir]/filters/libmsooxml/doc 2. type 'calligrawords MSOOXML_Filters_HOWTO.odt' 3. Press "PgDn" 5 times (the actual number may be dependent on screen size) until the table of content is first shown. This shows the ToC with white text on blue background. Fonts seem to be correct, though. 4. Press "PgDn" again. The ToC is now shown correctly. Actual Results: ToC is shown as described above. Expected Results: The ToC should always be shown according to the styles in the document.
I can't reproduce
Still the same for me, using a newly built calligra words 2.9 branch. See newly attached screenshot. It's even so that if I PgDown as described, I get an inversely colored ToC, except now it's white on green instead of white on blue. When I PgDown once more, it's correct again. But if I then PgUp again, it's once again painted with white on color. I think this might be a problem with an uninitialized color variable since the colors are now different than when I reported it.
Created attachment 91782 [details] Screenshot of the problem
could you attach the document then please
hello... it's part of the calligra source code. It says so in the description :P
We found the solution. It's not a bug at all, it's just that the cursor gets moved to the ToC on the pagedown action and that selects it. Hence the other color. I got tricked by the difference in behaviour from lowriter, that does not move the cursor at all when pressing pagedown or pageup.