Bug 306200 - Table of Contents is shown with white text on blue background the first time
Summary: Table of Contents is shown with white text on blue background the first time
Status: RESOLVED NOT A BUG
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 15:38 UTC by Inge Wallin
Modified: 2015-03-28 16:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of the problem (165.15 KB, image/png)
2015-03-27 20:07 UTC, Inge Wallin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Inge Wallin 2012-09-03 15:38:02 UTC
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.
Comment 1 Camilla Boemann 2015-03-27 13:38:26 UTC
I can't reproduce
Comment 2 Inge Wallin 2015-03-27 20:06:15 UTC
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.
Comment 3 Inge Wallin 2015-03-27 20:07:08 UTC
Created attachment 91782 [details]
Screenshot of the problem
Comment 4 Camilla Boemann 2015-03-27 20:13:15 UTC
could you attach the document then please
Comment 5 Inge Wallin 2015-03-27 20:20:36 UTC
hello... it's part of the calligra source code.  It says so in the description :P
Comment 6 Inge Wallin 2015-03-28 16:01:26 UTC
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.