From: Jean-Marc Lasgouttes [lasgout...@lyx.org]
Sent: Sunday, July 15, 2012 9:34 AM

Le 15/07/12 09:14, Scott Kostyshak a écrit :
>> What is the correct way to check whether a buffer is hidden?
>>
>> I am currently doing the following
>> bool const hidden = !(guiApp->currentView() &&
>> guiApp->currentView()->workArea(*b));
>>
>> which works fine but I'm not sure if it's the right way.

>This is the usual way, as ugly as it may seem.

Could I add a buffer member function that does this or is it too uncommon?

Scott

Reply via email to