Why does svtools::EditBrowseBox::IsCursorMoveAllowed paint?

Lionel Elie Mamane lionel at mamane.lu
Tue Jul 24 08:56:58 PDT 2012

On Wed, Jul 18, 2012 at 07:48:43PM +0200, Lionel Elie Mamane wrote:

> Has anybody any clue why svtools::EditBrowseBox::IsCursorMoveAllowed
> needs to call rWindow.Paint()? (...)

> This function, by name, looks like a purely "informative" function,

as is suggested also by its const qualifier...

> that shouldn't really have any side effect, but it seems like it has
> several :-(

as is clearly shown by this:

        EditBrowseBox * pTHIS = (EditBrowseBox *) this;

And then using pTHIS to call non-const member functions :-(


More information about the LibreOffice mailing list