ocornut/imgui — pull request #15 by Roflraging (2014-08-13 18:13:08+00:00)
Title: Fix unchecked access to command buffer.

In the example application, clicking on the Combo list under Widgets
will cause an assert. This commit checks if the command buffer is empty
before attempting to access it.

I'm not too familiar with the inner workings of your library, so you'll probably want to check that this doesn't interfere with other commands, but a quick check through the example application seems like it works ok...

Also, may have ruined indenting with emacs.