strange behaviour of SwCrsrShell::aVisArea

Cedric Bosdonnat cbosdonnat at suse.com
Mon Jan 14 06:20:29 PST 2013


On Mon, 2013-01-14 at 14:01 +0100, Winfried Donkers wrote:
> SwCrsrShell::CrsrIsVisible() returns sal_True, zoom % is 60,
> SwCrsrShell::aVisArea.Top(), Bottom() give 170460 and 188635.
> 
> I then move the cursor one line down and back (no scrolling), zoom to
> 55% and back to 60%.
> 
> The visible area looks identical, the cursor is back in the same
> location.
> 
> Now SwCrsrShell::CrsrIsVisible() returns sal_True, zoom % is 60,
> SwCrsrShell::aVisArea.Top(), Bottom() give 115860 and 134035. The
> cursor rectangle position has not changed and now is not in
> SwCrsrShell::aVisArea (cursor top/bottom is 121272/122191).
> 
>  
> 
> What is the explanation for this behaviour?

I don't know that area of the code too well, but this smells pretty bad.
May be looking at what changes the aVisArea to these (false) values
would help.

--
Cedric




More information about the LibreOffice mailing list