strange behaviour of SwCrsrShell::aVisArea

2013-01-14 Thread Winfried Donkers
Hi all, I'm trying to enhance the patch for fdo#40465 as the patch results in behaviour that in some cases is a regression. When zooming I want to know if the cursor is visible. The function SwCrsrShell::CrsrIsVisible() some times returns sal_False when the cursor absolutely is visible in the

Re: strange behaviour of SwCrsrShell::aVisArea

2013-01-14 Thread Cedric Bosdonnat
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

RE: strange behaviour of SwCrsrShell::aVisArea

2013-01-14 Thread Winfried Donkers
Hi Cedric, 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. Thank you for your reply. I started collecting more traces; the present situation is that the strange behaviour is probably caused