On 26/01/2018 at 04:20, xxxxxxxx wrote:
Hi Donovan,
can you please verify, it's actually returning 40?
I tested here and it seems to work, although I have to admit it may not be immediately obvious.
Here by default BaseDrawCount() returns 4, even if there's only for example perspective view visible in the view panel. But you can switch to the four split views. And all BaseDraws needed for these do exist. For example they will store the zoom state and position each split view, so it can be restored after switching to single view and back to split.
Now, when you create an View Panel from the Window menu, then BaseDrawCount() will return 8. For the same reason as above, you can again split this view panel in four views.
And BaseDrawCount() will continue to return 8, even if this new View Panel gets closed. Again, for the same reason, after re-opening it, it will still show the same views as before closing.
So, the behavior might seem a bit strange, but it's not a bug, assuming yours is not really returning 40 all the time...